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    

 [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"> =====


 [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 ( "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 by the end of next Sunday (CET). If this was a problem with the 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.