HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2860Clarify the <meta charset> rules for XML documents.2009-02-23 12:26
@@ -9481,29 +9481,33 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
   <code title="attr-meta-http-equiv">http-equiv</code>, and <code
   title="attr-meta-charset">charset</code> attributes must be
   specified.</p>
 
   <p>If either <code title="attr-meta-name">name</code> or <code
   title="attr-meta-http-equiv">http-equiv</code> is specified, then
   the <code title="attr-meta-content">content</code> attribute must
   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
   values depend on the exact context, as described in subsequent
   sections of this specification.</p>
 
   <p>If a <code>meta</code> element has a <dfn
   title="attr-meta-name"><code>name</code></dfn> attribute, it sets
   document metadata. Document metadata is expressed in terms of

|