This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
According with : [1] http://www.w3schools.com/tags/tag_script.asp [2] http://www.w3schools.com/tags/ref_standardattributes.asp Tag <script> should support "class" atttribute as it's a glogal attribute. In the W3C validator [3] http://validator.w3.org/ This example: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Minimal XHTML 1.0 Document</title> <script class="test" type="text/javascript"></script> </head> <body> <p>This is a minimal <a href="http://www.w3.org/TR/xhtml1/">XHTML 1.0</a> document.</p> </body> </html> Fails with error: Line 8, Column 19: there is no attribute "class" <script class="test" type="text/javascript"></script> When it should pass test.