HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/3909

File a bug

SVNBugCommentTime (UTC)
3909Make it clear that spaces around the value of type='' on <script> are stripped first, and that the types are compared literally.2009-09-19 10:01
Index: source
===================================================================
--- source	(revision 3908)
+++ source	(revision 3909)
@@ -11068,9 +11068,9 @@
   attribute on hyperlink elements</span>.</p>
 
   <p>The <dfn title="attr-link-type"><code>type</code></dfn> attribute
-  gives the <span>MIME type</span> of the linked resource. It is purely advisory.
-  The value must be a <span>valid MIME type</span>, optionally with
-  parameters.</p>
+  gives the <span>MIME type</span> of the linked resource. It is
+  purely advisory.  The value must be a <span>valid MIME type</span>,
+  optionally with parameters.</p>
 
   <p>For <span title="external resource link">external resource
   links</span>, the <code title="attr-link-type">type</code> attribute
@@ -12674,7 +12674,9 @@
     <p>Otherwise, if the <code>script</code> element has a <code
     title="attr-script-type">type</code> attribute, let <var>the
     script block's type</var> for this <code>script</code> element be
-    the value of that attribute.</p>
+    the value of that attribute with any leading or trailing sequences
+    of <span title="space character">space characters</span>
+    removed.</p>
 
     <p>Otherwise, the element has a non-empty <code
     title="attr-script-language">language</code> attribute; let
@@ -13240,35 +13242,36 @@
   <div class="impl">
 
   <p>A user agent is said to <dfn>support the scripting language</dfn>
-  if <var>the script block's type</var> matches the <span>MIME type</span> of a
-  scripting language that the user agent implements.</p>
+  if <var>the script block's type</var> is an <span>ASCII
+  case-insensitive</span> match for the <span>MIME type</span> string
+  of a scripting language that the user agent implements.</p>
 
   </div>
 
-  <p>The following lists some <span title="MIME type">MIME
-  types</span> and the languages to which they refer:</p>
+  <p>The following lists some <span>MIME type</span> strings and the
+  languages to which they refer:</p>
 
   <dl>
 
-   <dt><code>application/ecmascript</code></dt>
-   <dt><code>application/javascript</code></dt>
-   <dt><code>application/x-ecmascript</code></dt>
-   <dt><code>application/x-javascript</code></dt>
-   <dt><code>text/ecmascript</code></dt>
-   <dt><code>text/javascript</code></dt>
-   <dt><code>text/javascript1.0</code></dt>
-   <dt><code>text/javascript1.1</code></dt>
-   <dt><code>text/javascript1.2</code></dt>
-   <dt><code>text/javascript1.3</code></dt>
-   <dt><code>text/javascript1.4</code></dt>
-   <dt><code>text/javascript1.5</code></dt>
-   <dt><code>text/jscript</code></dt>
-   <dt><code>text/livescript</code></dt>
-   <dt><code>text/x-ecmascript</code></dt>
-   <dt><code>text/x-javascript</code></dt>
+   <dt>"<code>application/ecmascript</code>"</dt>
+   <dt>"<code>application/javascript</code>"</dt>
+   <dt>"<code>application/x-ecmascript</code>"</dt>
+   <dt>"<code>application/x-javascript</code>"</dt>
+   <dt>"<code>text/ecmascript</code>"</dt>
+   <dt>"<code>text/javascript</code>"</dt>
+   <dt>"<code>text/javascript1.0</code>"</dt>
+   <dt>"<code>text/javascript1.1</code>"</dt>
+   <dt>"<code>text/javascript1.2</code>"</dt>
+   <dt>"<code>text/javascript1.3</code>"</dt>
+   <dt>"<code>text/javascript1.4</code>"</dt>
+   <dt>"<code>text/javascript1.5</code>"</dt>
+   <dt>"<code>text/jscript</code>"</dt>
+   <dt>"<code>text/livescript</code>"</dt>
+   <dt>"<code>text/x-ecmascript</code>"</dt>
+   <dt>"<code>text/x-javascript</code>"</dt>
    <dd>JavaScript. <a href="#refsECMA262">[ECMA262]</a></dd>
 
-   <dt><code>text/javascript;e4x=1</code></dt>
+   <dt>"<code>text/javascript;e4x=1</code>"</dt>
    <dd>JavaScript with ECMAScript for XML. <a href="#refsECMA357">[ECMA357]</a></dd>
 
   </dl>

|