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-04 03:44 UTC
From: stoyan Assigned: cweiske
Status: Closed Package: HTML_TreeMenu
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 1.2.1    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 40 - 15 = ?

 
 [2005-10-04 03: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 12: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 14: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 13: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.