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

spec/Overview.html 1.2115 2952 Clarify that you can't have two encoding

From: poot <cvsmail@w3.org>
Date: Thu, 2 Apr 2009 12:37:19 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090402033719.D4FCD2BC34@toro.w3.mag.keio.ac.jp>
Clarify that you can't have two encoding decls. (credit: sp) (bug 6614)
(whatwg r2952)
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6614

The element containing the character encoding declaration must be serialised completely within the first 512 bytes of the document.
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2115.html#charset512

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2114&r2=1.2115&f=h
http://html5.org/tools/web-apps-tracker?from=2951&to=2952

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2114
retrieving revision 1.2115
diff -u -d -r1.2114 -r1.2115
--- Overview.html	1 Apr 2009 01:49:33 -0000	1.2114
+++ Overview.html	1 Apr 2009 01:54:50 -0000	1.2115
@@ -9472,6 +9472,13 @@
    declaration must be serialised completely within the first 512
    bytes of the document.</li>
 
+   <li>There can only be one character encoding declaration in the
+   document. <!-- conformance critiera for this one are given in
+   the XML spec, the <meta> section just after defining charset="",
+   and the character encoding pragma section. And actually this
+   statement isn't quite true, since you can have an XML one and an
+   HTML one at the same time if they match. -->
+
   </ul><p>If an <a href=#html-documents title="HTML documents">HTML document</a> does not
   start with a BOM, and if its encoding is not explicitly given by
   <a href=#content-type-0 title=Content-Type>Content-Type metadata</a>, then the
Received on Thursday, 2 April 2009 03:37:55 GMT

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