? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
8 Jan 2022

Pull Request for Issue #13522.

Summary of Changes

don't remove <joomla-hidden-mail>

Testing Instructions

  • Add an "Articles Category" module on the sample site
  • Under "Display Options" tab: everything on Hide, except "Introtext= show" and "Show Read More=show"
  • Create an article with the below html:
<p>Intro text <a href="mailto:sample@example.com">sample@example.com</a> - more more more</p>
<hr id="system-readmore" />
<p><br />Paragraph 1<br />1<br />2<br />3<br />4<br />5</p>
<p>Paragraph 2<br />1<br />2<br />3<br />4<br />5</p>
<p>Paragraph 3<br />1<br />2<br />3<br />4<br />5</p>
<p>End</p>

Actual result BEFORE applying this Pull Request

This email address is being protected from spambots. You need JavaScript enabled to...

Expected result AFTER applying this Pull Request

Introtext shows the email address

avatar alikon alikon - open - 8 Jan 2022
avatar alikon alikon - change - 8 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jan 2022
Category Modules Front End
avatar alikon alikon - change - 8 Jan 2022
Title
[3] don't remove <joomla-hidden-mail> from module
[3] don't remove emailcloack from module
avatar alikon alikon - edited - 8 Jan 2022
avatar jsubri
jsubri - comment - 8 Jan 2022

I have tested this item successfully on ec6ea54

Clever fix

Before the patch the javascript is render "document.getElementById('cloak1bb8d18fc01bde967325b35c999b2ffa').inner..."

After, works as expected

tested on 3.9.x and 3.10.4, not test tested on J4

Thank you


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36603.
avatar jsubri jsubri - test_item - 8 Jan 2022 - Tested successfully
avatar alikon alikon - change - 8 Jan 2022
Labels Added: ?
avatar jsubri
jsubri - comment - 9 Jan 2022

I have tested this item successfully on 55e5103

Now respecting the show/hide Introtext pointed out by @Fedik
Thank you


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36603.

avatar jsubri jsubri - test_item - 9 Jan 2022 - Tested successfully
avatar Fedik
Fedik - comment - 10 Jan 2022

I just found, changing the code ordering may break more than fix.
Example if Article contain "loadmodule/loadposition" tag:

<p>{loadposition navigation}</p>
<p>Intro text <a href="mailto:sample@example.com">sample@example.com</a> - more more more</p>
<hr id="system-readmore" />
<p><br />Paragraph 1<br />1<br />2<br />3<br />4<br />5</p>
<p>Paragraph 2<br />1<br />2<br />3<br />4<br />5</p>
<p>Paragraph 3<br />1<br />2<br />3<br />4<br />5</p>
<p>End</p>

Then whole content will be rendered.

Need to find another way.

avatar Quy Quy - change - 16 Jun 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-06-16 15:55:10
Closed_By Quy

Add a Comment

Login with GitHub to post a comment