- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 23 Jan 2009 10:19:51 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv13519 Modified Files: Overview.html Log Message: Define handling of MIME type charsets in <script src> external scripts (whatwg r2697) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.1866 retrieving revision 1.1867 diff -u -d -r1.1866 -r1.1867 --- Overview.html 23 Jan 2009 01:11:55 -0000 1.1866 +++ Overview.html 23 Jan 2009 10:19:48 -0000 1.1867 @@ -7951,11 +7951,10 @@ attribute gives the character encoding of the external script resource. The attribute must not be specified if the <code title=attr-script-src><a href=#attr-script-src>src</a></code> attribute is not present. If the attribute is set, its value must be a valid character encoding name, - and must be the preferred name for that encoding. <a href=#references>[IANACHARSET]</a><p>The encoding specified must be the encoding used by the script - resource. If the <code title=attr-script-charset><a href=#attr-script-charset>charset</a></code> - attribute is omitted, the character encoding of the document will be - used. If the script resource uses a different encoding than the - document, then the attribute must be specified.<p>The <dfn id=attr-script-async title=attr-script-async><code>async</code></dfn> and + must be the preferred name for that encoding, and must match the + encoding given in the <code title="">charset</code> parameter of the + <a href=#content-type-0 title=Content-Type>Content-Type metadata</a> of the + external file, if any. <a href=#references>[IANACHARSET]</a><p>The <dfn id=attr-script-async title=attr-script-async><code>async</code></dfn> and <dfn id=attr-script-defer title=attr-script-defer><code>defer</code></dfn> attributes are <a href=#boolean-attribute title="boolean attribute">boolean attributes</a> that indicate how the script should be executed.<p>There are three possible modes that can be selected using these @@ -8076,6 +8075,13 @@ agent must act as if it had received an empty HTTP 400 response.</p> + <p>Once the resource's <a href=#content-type-0 title=Content-Type>Content Type + metadata</a> is available, if it ever is, apply the + <a href=#algorithm-for-extracting-an-encoding-from-a-content-type>algorithm for extracting an encoding from a + Content-Type</a> to it. If this returns an encoding, and the + user agent supports that encoding, then let <var><a href=#the-script-block-s-character-encoding>the script + block's character encoding</a></var> be that encoding.</p> + <p>Once the fetching process has completed, and the script has <dfn id=completed-loading>completed loading</dfn>, the user agent will have to complete <a href=#when-a-script-completes-loading title="when a script completes loading">the steps described
Received on Friday, 23 January 2009 10:20:02 UTC