<?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>3413</bug_id>
          
          <creation_ts>2006-06-28 17:34:09 +0000</creation_ts>
          <short_desc>If &lt;META http-equiv=&quot;Content-Script-Type&quot; content=&quot;text/javascript&quot;&gt; is set, then &lt;SCRIPT src=&quot;foo.js&quot;&gt;&lt;/SCRIPT&gt; should be accepted without the &quot;type&quot; attribut.</short_desc>
          <delta_ts>2007-01-04 14:26:15 +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>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.uqtr.ca/~fortierc/meta-and-script-test.html</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="Claude Fortier">claude.fortier</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          <cc>pgaries</cc>
          
          <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>10320</commentid>
    <comment_count>0</comment_count>
    <who name="Claude Fortier">claude.fortier</who>
    <bug_when>2006-06-28 17:34:09 +0000</bug_when>
    <thetext>In a web page where the element
&lt;META http-equiv=&quot;Content-Script-Type&quot; content=&quot;text/javascript&quot;&gt;
is present, the validator gives an error when the element 
&lt;SCRIPT&gt;
is used without the attribut &quot;type=&quot;.
(see http://validator.w3.org/check?verbose=1&amp;uri=http%3A%2F%2Fwww.uqtr.ca%2F~fortierc%2Fmeta-and-script-test.html)

When a I read the HTML 4.01 Specification at section 18.2.1 &quot;The SCRIPT element&quot; (http://www.w3.org/TR/html4/interact/scripts.html#edef-SCRIPT), it seem to me that if the META tag is there, there is no need to put the &quot;type=&quot; attribut in the tag SCRIPT.

But the validator mark it as &quot;This page is not Valid HTML 4.01 Strict!&quot;.

Am I wrong? Or it&apos;s a bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12233</commentid>
    <comment_count>1</comment_count>
      <attachid>440</attachid>
    <who name="Mars">marsceleste38</who>
    <bug_when>2006-10-02 15:02:04 +0000</bug_when>
    <thetext>Created attachment 440
Cyber Script</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12241</commentid>
    <comment_count>2</comment_count>
      <attachid>440</attachid>
    <who name="Claude Fortier">claude.fortier</who>
    <bug_when>2006-10-02 20:03:53 +0000</bug_when>
    <thetext>Comment on attachment 440
Cyber Script

This is a virus. Don&apos;t download the file. Can someone remove this attachment?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12247</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-10-02 22:54:49 +0000</bug_when>
    <thetext>Thank you Claude, I removed the attachment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13348</commentid>
    <comment_count>4</comment_count>
    <who name="Patrick Garies">pgaries</who>
    <bug_when>2007-01-04 06:23:36 +0000</bug_when>
    <thetext>&gt; Am I wrong? Or it&apos;s a bug?

The &quot;Content-Script-Type&quot; only refers to the content of event attributes such as &quot;onmouseover&quot;, &quot;onmouseout&quot;, &quot;onchange&quot;, &quot;onkeypress&quot;, et cetera, not the &quot;script&quot; element. That&apos;s similar to the way &quot;Content-Style-Type&quot; refers to &quot;style&quot; attributes, not the &quot;style&quot; element. In any case, the &quot;type&quot; attribute is required by the DTD, so it must be present for the document to be valid.

From the part of the specification you referred to:
&quot;Documents that do not specify default scripting language information and that contain elements that specify an intrinsic event script are incorrect. User agents may still attempt to interpret incorrectly specified scripts but are not required to.&quot;

In other words, if you use event attributes, you should specify &quot;Content-Script-Type&quot; or face the (unlikely, but justified) event that a browser will simply ignore that attribute&apos;s content because it doesn&apos;t know the content type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13350</commentid>
    <comment_count>5</comment_count>
    <who name="Claude Fortier">claude.fortier</who>
    <bug_when>2007-01-04 14:26:15 +0000</bug_when>
    <thetext>(In reply to comment #4)

Thanks you Patrick for the explanation. I understand now.

Happy new year!

Claude Fortier</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>