?
avatar thuebschmann
thuebschmann
19 Dec 2018

Steps to reproduce the issue

enable emailcloack plugin
set document->isHTML5(true)
have an emial in Content
Check the gernerated page with https://validator.w3.org/nu/

Expected result

Generate Html without the type attribute in inline-script tag
Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!<script>
document.getElementById('cloake7fa3ec772fcb512429aabca45b631b7').innerHTML = '';
var prefix = 'ma' + 'il' + 'to';
var path = 'hr' + 'ef' + '=';
var addye7fa3ec772fcb512429aabca45b631b7 = 'info' + '@';
addye7fa3ec772fcb512429aabca45b631b7 = addye7fa3ec772fcb512429aabca45b631b7 + 'weko24' + '.' + 'de';
var addy_texte7fa3ec772fcb512429aabca45b631b7 = 'info@weko24.de ';document.getElementById('cloake7fa3ec772fcb512429aabca45b631b7').innerHTML += '<a ' + path + ''' + prefix + ':' + addye7fa3ec772fcb512429aabca45b631b7 + ''>'+addy_texte7fa3ec772fcb512429aabca45b631b7+'</a>';
</script>

Actual result

Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!<script type='text/javascript'>
document.getElementById('cloake7fa3ec772fcb512429aabca45b631b7').innerHTML = '';
var prefix = 'ma' + 'il' + 'to';
var path = 'hr' + 'ef' + '=';
var addye7fa3ec772fcb512429aabca45b631b7 = 'info' + '@';
addye7fa3ec772fcb512429aabca45b631b7 = addye7fa3ec772fcb512429aabca45b631b7 + 'weko24' + '.' + 'de';
var addy_texte7fa3ec772fcb512429aabca45b631b7 = 'info@weko24.de ';document.getElementById('cloake7fa3ec772fcb512429aabca45b631b7').innerHTML += '<a ' + path + ''' + prefix + ':' + addye7fa3ec772fcb512429aabca45b631b7 + ''>'+addy_texte7fa3ec772fcb512429aabca45b631b7+'</a>';
</script>

System information (as much as possible)

Database Type mysql
Datenbankversion 5.6.19-67.0-log
Datenbankzeichensatz utf8_general_ci
Datenbankverbindungszeichensatz utf8mb4_general_ci
PHP-Version 7.2.11
Webserver Apache/2.4.35
PHP-Interface für den Webserver cgi-fcgi
Joomla!-Version Joomla! 3.9.1 Stable [ Amani ] 27-November-2018 15:00 GMT
Joomla!-Plattform-Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Browsererkennung Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0

Additional comments

I think you must changee the /libraries/cms/html/email.php file on line 102 and remove the hard code

avatar thuebschmann thuebschmann - open - 19 Dec 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Dec 2018
avatar mbabker
mbabker - comment - 19 Dec 2018

HTML5 says the type CAN be omitted and the default text/javascript MIME is assumed, it does not say that the type MUST be omitted when the type is the default text/javascript MIME, see https://www.w3.org/TR/html5/semantics-scripting.html#element-attrdef-script-type for reference. So it's fine as is for now.

avatar richard67
richard67 - comment - 25 Dec 2018

This issue should be closed for reason stated above by mbabker.

avatar Quy Quy - change - 25 Dec 2018
Status New Expected Behaviour
Closed_Date 0000-00-00 00:00:00 2018-12-25 17:05:31
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 25 Dec 2018
Status Expected Behaviour Closed
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 25 Dec 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 25 Dec 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23300

Add a Comment

Login with GitHub to post a comment