[Bug 25004] New: class attributed marked as error on script tag elements on XHTML 1.0 validation

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25004

            Bug ID: 25004
           Summary: class attributed marked as error on script tag
                    elements on XHTML 1.0 validation
           Product: Validator
           Version: HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
          Assignee: dave.null@w3.org
          Reporter: ponce.ballesteros@gmail.com
        QA Contact: www-validator-cvs@w3.org

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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 11 March 2014 12:35:35 UTC