Skip to content

Commit

Permalink
[] (0) Make it clear that spaces around the value of type='' on <scri…
Browse files Browse the repository at this point in the history
…pt> are stripped first, and that the types are compared literally.

git-svn-id: http://svn.whatwg.org/webapps@3909 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 19, 2009
1 parent 9a27400 commit 949c6db
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 55 deletions.
63 changes: 33 additions & 30 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -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-&mdash;-18-september-2009>Draft Standard &mdash; 18 September 2009</h2>
<h2 class="no-num no-toc" id=draft-standard-&mdash;-19-september-2009>Draft Standard &mdash; 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>-->
Expand Down Expand Up @@ -10589,9 +10589,9 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p&gt;
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
Expand Down Expand Up @@ -11982,7 +11982,9 @@ people expect to have work and what is necessary.

<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>
Expand Down Expand Up @@ -12467,33 +12469,34 @@ o............A....e
<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>

</div>

<p>The following lists some <a href=#mime-type title="MIME type">MIME
types</a> 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>
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>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>
<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>
Expand Down
53 changes: 28 additions & 25 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -11068,9 +11068,9 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p>
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
Expand Down Expand Up @@ -12674,7 +12674,9 @@ people expect to have work and what is necessary.
<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
Expand Down Expand Up @@ -13240,35 +13242,36 @@ o............A....e
<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>
Expand Down

0 comments on commit 949c6db

Please sign in to comment.