[] (0) Make it clear that spaces around the value of type='' on <scri…
…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
<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>-->
links</a>, the <code title=attr-link-type><a href=#attr-link-type>type</a></code> attribute
<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>
<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