[html5] r2860 - [e] (0) Clarify the <meta charset> rules for XML documents.

whatwg at whatwg.org whatwg at whatwg.org
Mon Feb 23 04:26:48 PST 2009


Author: ianh
Date: 2009-02-23 04:26:47 -0800 (Mon, 23 Feb 2009)
New Revision: 2860

Modified:
   index
   source
Log:
[e] (0) Clarify the <meta charset> rules for XML documents.

Modified: index
===================================================================
--- index	2009-02-23 12:14:37 UTC (rev 2859)
+++ index	2009-02-23 12:26:47 UTC (rev 2860)
@@ -9145,15 +9145,18 @@
   also be specified. Otherwise, it must be omitted.</p>
 
   <p>The <dfn id=attr-meta-charset title=attr-meta-charset><code>charset</code></dfn>
-  attribute specifies the character encoding used by the
-  document. This is called a <a href=#character-encoding-declaration>character encoding
-  declaration</a>. There must not be more than one element with a
-  <code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute per
-  document. If the attribute is present in an <a href=#xhtml5 title=XHTML>XML
-  document</a>, its value must be an <a href=#ascii-case-insensitive>ASCII
+  attribute specifies the character encoding used by the document. In
+  <a href=#html5 title=HTML5>HTML documents</a> this is a <a href=#character-encoding-declaration>character
+  encoding declaration</a>. If the attribute is present in an <a href=#xhtml5 title=XHTML>XML document</a>, its value must be an <a href=#ascii-case-insensitive>ASCII
   case-insensitive</a> match for the string "<code title="">UTF-8</code>", and the resource must be encoded using the
-  UTF-8 character encoding.</p>
+  UTF-8 character encoding. (The element has no effect in XML
+  documents, and is only allowed to facilitate migration to and from
+  XHTML.)</p>
 
+  <p>There must not be more than one <code><a href=#meta>meta</a></code> element with a
+  <code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute per
+  document.</p>
+
   <p>The <dfn id=attr-meta-content title=attr-meta-content><code>content</code></dfn>
   attribute gives the value of the document metadata or pragma
   directive when the element is used for those purposes. The allowed

Modified: source
===================================================================
--- source	2009-02-23 12:14:37 UTC (rev 2859)
+++ source	2009-02-23 12:26:47 UTC (rev 2860)
@@ -9488,16 +9488,20 @@
   also be specified. Otherwise, it must be omitted.</p>
 
   <p>The <dfn title="attr-meta-charset"><code>charset</code></dfn>
-  attribute specifies the character encoding used by the
-  document. This is called a <span>character encoding
-  declaration</span>. There must not be more than one element with a
-  <code title="attr-meta-charset">charset</code> attribute per
-  document. If the attribute is present in an <span title="XHTML">XML
-  document</span>, its value must be an <span>ASCII
+  attribute specifies the character encoding used by the document. In
+  <span title="HTML5">HTML documents</span> this is a <span>character
+  encoding declaration</span>. If the attribute is present in an <span
+  title="XHTML">XML document</span>, its value must be an <span>ASCII
   case-insensitive</span> match for the string "<code
   title="">UTF-8</code>", and the resource must be encoded using the
-  UTF-8 character encoding.</p>
+  UTF-8 character encoding. (The element has no effect in XML
+  documents, and is only allowed to facilitate migration to and from
+  XHTML.)</p>
 
+  <p>There must not be more than one <code>meta</code> element with a
+  <code title="attr-meta-charset">charset</code> attribute per
+  document.</p>
+
   <p>The <dfn title="attr-meta-content"><code>content</code></dfn>
   attribute gives the value of the document metadata or pragma
   directive when the element is used for those purposes. The allowed




More information about the Commit-Watchers mailing list