HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2859

File a bug

SVNBugCommentTime (UTC)
2859[Conformance Checkers] Allow <meta charset='utf-8'> in XML. (bug 6613)2009-02-23 12:14
Index: source
===================================================================
--- source	(revision 2858)
+++ source	(revision 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

|