The Joomla! Forum ™



Forum rules


Please use the official Bug Tracker to report a bug: http://joomlacode.org/gf/project/joomla ... er_id=8103



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Feb 17, 2012 5:52 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Feb 17, 2012 5:11 pm
Posts: 1
Joomla_2.5.1-Stable-Full_Package/libraries/joomla/html/html/email.php

The method used with text between 2 document.write is bad, and causes warnings in Firefox, or errors.

This code :

Code:
      // XHTML compliance `No Javascript` text handling
      $replacement    .= "<span id= 'addy$rand' style='display: inline;'>";
      $replacement    .= JText::_('CLOAKING');
      $replacement    .= "</span>";
      $replacement    .= "\n <script language='JavaScript' type='text/javascript'>";
      $replacement    .= "\n <!--";
      $replacement    .= "\n var el=document.getElementById('addy$rand');";
      $replacement    .= "\n el.style.display='none';";
      $replacement    .= "\n //-->";
      $replacement    .= "\n </script>";

produce the same hidden text, and is accepted by all syntax checkers.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 



Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group