HTML Standard Tracker

Filter

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
@@ -11061,23 +11061,23 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p>
   title="attr-link-media">media</code> attribute is omitted, is
   <code>all</code>, meaning that by default links apply to all
   media.</p>
 
   <p>The <dfn title="attr-link-hreflang"><code>hreflang</code></dfn>
   attribute on the <code>link</code> element has the same semantics as
   the <span title="attr-hyperlink-hreflang"><code>hreflang</code>
   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
   is used as a hint to user agents so that they can avoid fetching
   resources they do not support. <span class="impl">If the attribute
   is present, then the user agent must assume that the resource is of
   the given type. If the attribute is omitted, but the external
   resource link type has a default type defined, then the user agent
   must assume that the resource is of that type. If the UA does not
   support the given <span>MIME type</span> for the given link relationship, then
@@ -12667,21 +12667,23 @@ people expect to have work and what is necessary.
 
     </ul>
 
     <p>...let <var>the script block's type</var> for this
     <code>script</code> element be "<code
     title="">text/javascript</code>".</p>
 
     <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
     <var>the script block's type</var> for this <code>script</code>
     element be the concatenation of the string "<code
     title="">text/</code>" followed by the value of the <code
     title="attr-script-language">language</code> attribute.</p> <!--
     user agents already support, e.g., type="text/javascript1.3", so
     we don't have to support that separately. -->
 
@@ -13233,49 +13235,50 @@ o............A....e
 
   </div>
 
 
 
   <h5 id="scriptingLanguages">Scripting languages</h5>
 
   <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>
 
   <div class="impl">
 
   <p>User agents may support other <span title="MIME type">MIME
   types</span> and other languages.</p>
 
   <!-- this paragraph is also present in the <style> section -->

|