Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.2

Request #5595 "language" attribute in <script> tag won't validate as XHTML strict
Submitted: 2005-10-03 22:44 UTC Modified: 2008-04-13 09:57 UTC
From: stoyan Assigned: cweiske
Status: Closed Package: HTML_TreeMenu
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 1.2.1    
Subscription  


 [2005-10-03 22:44 UTC] stoyan
Description: ------------ I was trying to validate a page that uses the package and I got: ===== This page is not Valid XHTML 1.0 Strict! ..... 1. Error Line XX column YY: there is no attribute "language". <script language="javascript" type="text/javascript"> =====

Comments

 [2006-12-14 07:05 UTC] cweiske (Christian Weiske)
Are there any comparison charts if language="" can be omitted when type="text/javascript" is given? I fear removing language="javascript" from the script tag would break the menu in some browsers.
 [2006-12-14 09:10 UTC] stoyan
From the w3c specs (http://www.w3.org/TR/html4/interact/scripts.html#edef-SCRIPT) "type" is a required attribute and "language" is not allowed. As far as I know when browsers see <script> they assume JavaScript.
 [2007-04-10 08:03 UTC] cweiske (Christian Weiske)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.