HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2016[Conformance Checkers] When <script type=''> is given, it must match the type of the script, even if the script is JS. (credit: hs)2008-08-05 20:40
@@ -23281,22 +23281,24 @@ function AddCloud(data, x, y) { ... }</pre>
    </dd>
   </dl>
 
   <p>The <code>script</code> element allows authors to include dynamic
   script and script data in their documents.</p>
 
   <p>When used to include dynamic scripts, the scripts may either be
   embedded inline or may be imported from an external file using the
   <code title="attr-script-src">src</code> attribute. If the language
   is not that described by "<code title="">text/javascript</code>",
-  then the type of the script's language must be given using the <code
-  title="attr-script-type">type</code> attribute.</p>
+  then the <code title="attr-script-type">type</code> attribute must
+  be present. If the <code title="attr-script-type">type</code>
+  attribute is present, its value must be the type of the script's
+  language.</p>
 
   <p>When used to include script data, the script data must be
   embedded inline, the format of the data must be given using the
   <code title="attr-script-type">type</code> attribute, and the <code
   title="attr-script-src">src</code> attribute must not be
   specified.</p>
 
   <p>The <dfn title="attr-script-type"><code>type</code></dfn>
   attribute gives the language of the script or format of the script
   data. If the attribute is present, its value must be a valid MIME

|