[html5] r3909 - [] (0) Make it clear that spaces around the value of type='' on <script> are str [...]

whatwg at whatwg.org whatwg at whatwg.org
Sat Sep 19 03:01:56 PDT 2009


Author: ianh
Date: 2009-09-19 03:01:55 -0700 (Sat, 19 Sep 2009)
New Revision: 3909

Modified:
   index
   source
Log:
[] (0) Make it clear that spaces around the value of type='' on <script> are stripped first, and that the types are compared literally.

Modified: index
===================================================================
--- index	2009-09-18 21:37:12 UTC (rev 3908)
+++ index	2009-09-19 10:01:55 UTC (rev 3909)
@@ -112,7 +112,7 @@
   <div class=head>
    <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <h1>HTML5</h1>
-   <h2 class="no-num no-toc" id=draft-standard-—-18-september-2009>Draft Standard — 18 September 2009</h2>
+   <h2 class="no-num no-toc" id=draft-standard-—-19-september-2009>Draft Standard — 19 September 2009</h2>
    <p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -10589,9 +10589,9 @@
   attribute on hyperlink elements</a>.</p>
 
   <p>The <dfn id=attr-link-type title=attr-link-type><code>type</code></dfn> attribute
-  gives the <a href=#mime-type>MIME type</a> of the linked resource. It is purely advisory.
-  The value must be a <a href=#valid-mime-type>valid MIME type</a>, optionally with
-  parameters.</p>
+  gives the <a href=#mime-type>MIME type</a> of the linked resource. It is
+  purely advisory.  The value must be a <a href=#valid-mime-type>valid MIME type</a>,
+  optionally with parameters.</p>
 
   <p>For <a href=#external-resource-link title="external resource link">external resource
   links</a>, the <code title=attr-link-type><a href=#attr-link-type>type</a></code> attribute
@@ -11982,7 +11982,9 @@
 
     <p>Otherwise, if the <code><a href=#script>script</a></code> element has a <code title=attr-script-type><a href=#attr-script-type>type</a></code> attribute, let <var><a href="#the-script-block's-type">the
     script block's type</a></var> for this <code><a href=#script>script</a></code> element be
-    the value of that attribute.</p>
+    the value of that attribute with any leading or trailing sequences
+    of <a href=#space-character title="space character">space characters</a>
+    removed.</p>
 
     <p>Otherwise, the element has a non-empty <code title=attr-script-language><a href=#attr-script-language>language</a></code> attribute; let
     <var><a href="#the-script-block's-type">the script block's type</a></var> for this <code><a href=#script>script</a></code>
@@ -12467,33 +12469,34 @@
   <div class=impl>
 
   <p>A user agent is said to <dfn id=support-the-scripting-language>support the scripting language</dfn>
-  if <var><a href="#the-script-block's-type">the script block's type</a></var> matches the <a href=#mime-type>MIME type</a> of a
-  scripting language that the user agent implements.</p>
+  if <var><a href="#the-script-block's-type">the script block's type</a></var> is an <a href=#ascii-case-insensitive>ASCII
+  case-insensitive</a> match for the <a href=#mime-type>MIME type</a> string
+  of a scripting language that the user agent implements.</p>
 
   </div>
 
-  <p>The following lists some <a href=#mime-type title="MIME type">MIME
-  types</a> and the languages to which they refer:</p>
+  <p>The following lists some <a href=#mime-type>MIME type</a> 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>
+  <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>
    <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>

Modified: source
===================================================================
--- source	2009-09-18 21:37:12 UTC (rev 3908)
+++ source	2009-09-19 10:01:55 UTC (rev 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>




More information about the Commit-Watchers mailing list