[html5] r2859 - [c] (0) Allow <meta charset='utf-8'> in XML. (bug 6613)

whatwg at whatwg.org whatwg at whatwg.org
Mon Feb 23 04:14:38 PST 2009


Author: ianh
Date: 2009-02-23 04:14:37 -0800 (Mon, 23 Feb 2009)
New Revision: 2859

Modified:
   index
   source
Log:
[c] (0) Allow <meta charset='utf-8'> in XML. (bug 6613)

Modified: index
===================================================================
--- index	2009-02-23 12:12:21 UTC (rev 2858)
+++ index	2009-02-23 12:14:37 UTC (rev 2859)
@@ -9115,7 +9115,7 @@
    <dd><code title=attr-meta-name><a href=#attr-meta-name>name</a></code></dd>
    <dd><code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code></dd>
    <dd><code title=attr-meta-content><a href=#attr-meta-content>content</a></code></dd>
-   <dd><code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> (<a href=#html-documents title="HTML documents">HTML</a> only)</dd>
+   <dd><code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code></dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class=idl>interface <dfn id=htmlmetaelement>HTMLMetaElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
@@ -9147,13 +9147,13 @@
   <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>.</p>
+  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
+  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>
 
-  <p>The <code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute may
-  be specified in <a href=#html5 title=HTML5>HTML documents</a> only, it
-  must not be used in <a href=#xhtml5 title=XHTML>XML documents</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.</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:12:21 UTC (rev 2858)
+++ source	2009-02-23 12:14:37 UTC (rev 2859)
@@ -9452,7 +9452,7 @@
    <dd><code title="attr-meta-name">name</code></dd>
    <dd><code title="attr-meta-http-equiv">http-equiv</code></dd>
    <dd><code title="attr-meta-content">content</code></dd>
-   <dd><code title="attr-meta-charset">charset</code> (<span title="HTML documents">HTML</span> only)</dd>
+   <dd><code title="attr-meta-charset">charset</code></dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class="idl">interface <dfn>HTMLMetaElement</dfn> : <span>HTMLElement</span> {
@@ -9490,14 +9490,14 @@
   <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>.</p>
+  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
+  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>
 
-  <p>The <code title="attr-meta-charset">charset</code> attribute may
-  be specified in <span title="HTML5">HTML documents</span> only, it
-  must not be used in <span title="XHTML">XML documents</span>. There
-  must not be more than one 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