W3C home > Mailing lists > Public > public-html-diffs@w3.org > January 2009

spec/Overview.html 1.1867 2697 Define handling of MIME type charsets in

From: poot <cvsmail@w3.org>
Date: Fri, 23 Jan 2009 19:22:57 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090123102257.6B2472BCB7@toro.w3.mag.keio.ac.jp>

Define handling of MIME type charsets in <script src> external scripts
(whatwg r2697)

async
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1867.html#attr-script-async
charset
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1867.html#attr-script-charset
completed loading
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1867.html#completed-loading
Running a script
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1867.html#running-a-script
defer
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1867.html#attr-script-defer

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1866&r2=1.1867&f=h
http://html5.org/tools/web-apps-tracker?from=2696&to=2697

===================================================================
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:23:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:13:57 GMT