Short URL: http://html5.org/r/2860
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2860 | Clarify the <meta charset> rules for XML documents. | 2009-02-23 12:26 |
Index: source =================================================================== --- source (revision 2859) +++ source (revision 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