<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25004</bug_id>
          
          <creation_ts>2014-03-11 12:35:33 +0000</creation_ts>
          <short_desc>class attribute marked as error on script tag elements on XHTML 1.0 validation</short_desc>
          <delta_ts>2014-03-11 12:55:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lucas Ponce">ponce.ballesteros</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102201</commentid>
    <comment_count>0</comment_count>
    <who name="Lucas Ponce">ponce.ballesteros</who>
    <bug_when>2014-03-11 12:35:33 +0000</bug_when>
    <thetext>According with :

[1] http://www.w3schools.com/tags/tag_script.asp
[2] http://www.w3schools.com/tags/ref_standardattributes.asp 

Tag &lt;script&gt; should support &quot;class&quot; atttribute as it&apos;s a glogal attribute.

In the W3C validator

[3] http://validator.w3.org/

This example:

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE html 
     PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
    &quot;DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;title&gt;Minimal XHTML 1.0 Document&lt;/title&gt;
    &lt;script class=&quot;test&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;p&gt;This is a minimal &lt;a href=&quot;http://www.w3.org/TR/xhtml1/&quot;&gt;XHTML 1.0&lt;/a&gt; 
    document.&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;

Fails with error:

Line 8, Column 19: there is no attribute &quot;class&quot;
    &lt;script class=&quot;test&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

When it should pass test.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>