[Tickets #2400] NEW: Horde::addScriptFile() uses deprecated language attribute

bugs@bugs.horde.org bugs at bugs.horde.org
Sat Aug 6 14:27:13 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2400
-----------------------------------------------------------------------
 Ticket             | 2400
 Created By         | mwarden at gmail.com
 Summary            | Horde::addScriptFile() uses deprecated language attribute
 Queue              | Horde Base
 Version            | HEAD
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
+New Attachment     | Horde.php.diff
-----------------------------------------------------------------------


mwarden at gmail.com (2005-08-06 14:27) wrote:

I am not able to change all the output needed to make Horde_Form xhtml
compliant. The problem I am having at the moment is this line
(framework/Horde/Horde.php#253):

echo '<script language="JavaScript" type="text/javascript" src="' .
$url . '"></script>';

As you can see, the output has the invalid attribute 'language'. Is
this in the plans to fix, or are you leaving it in there for (very)
backward compatibility? This line is in the addScriptFile() method
which is used all over the place in Horde_Form (and I'm sure
elsewhere). The langauge attribute was deprecated in HTML4.01, if that
helps in the decision.

Patch attached.




More information about the bugs mailing list