- From: Eliot Graff via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 04 Mar 2011 19:57:37 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/html-xhtml-author-guide In directory hutz:/tmp/cvs-serv5909 Modified Files: html-xhtml-authoring-guide.html Log Message: Edited section 3 per requests in bug 12062, comments 6 & 7; Index: html-xhtml-authoring-guide.html =================================================================== RCS file: /sources/public/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html,v retrieving revision 1.63 retrieving revision 1.64 diff -u -d -r1.63 -r1.64 --- html-xhtml-authoring-guide.html 4 Mar 2011 01:48:21 -0000 1.63 +++ html-xhtml-authoring-guide.html 4 Mar 2011 19:57:35 -0000 1.64 @@ -14,7 +14,7 @@ <a href="http://www.w3.org/"><img height="48" width="72" alt="W3C" src="http://www.w3.org/Icons/w3c_home"/></a> </p> <h1 class="title" id="title">Polyglot Markup: HTML-Compatible XHTML Documents</h1> - <h2 id="w3c-editor-s-draft-05-january-2011">W3C Editor's Draft 03 March 2011</h2> + <h2 id="w3c-editor-s-draft-05-january-2011">W3C Editor's Draft 4 March 2011</h2> <dl> <dt>This version:</dt> <dd><a href="http://dev.w3.org/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html">http://dev.w3.org/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html</a></dd> @@ -238,8 +238,8 @@ <!--OddPage--><h2><span class="secno">3. </span>Specifying a Document's Character Encoding</h2> <p> <a class="internalDFN" href="#dfn-polyglot-markup" title="polyglot markup">Polyglot markup</a> uses either UTF-8 or UTF-16. UTF-8 is preferred. - When <a class="internalDFN" href="#dfn-polyglot-markup">polyglot markup</a> uses UTF-16, it includes the BOM indicating - little-endian UTF-16 or big-endian UTF-16. + When <a class="internalDFN" href="#dfn-polyglot-markup">polyglot markup</a> uses UTF-16, it <em title="must" class="rfc2119">must</em> include a BOM indicating + little-endian UTF-16 or big-endian UTF-16, per XML, <a href="http://www.w3.org/TR/REC-xml/#charencoding">Character Encoding in Entities</a>. [<cite><a href="#bib-XML10" rel="biblioentry" class="bibref">XML10</a></cite>] </p> <p> <a class="internalDFN" href="#dfn-polyglot-markup" title="polyglot markup">Polyglot markup</a> declares character encoding in the following ways, which may be used separately or in combination @@ -265,7 +265,6 @@ <p> Using <code><meta charset="*"/></code> has no effect in XML. Therefore, <a class="internalDFN" href="#dfn-polyglot-markup">polyglot markup</a> may use <code><meta charset="*"/></code> provided the document is encoded as UTF-8 and the value of charset is a case-insensitive match for the string "utf-8". - However, because the mime-type is not necessarily <code>text/html</code>, polyglot markup does not use <code><meta content=”text/html; charset”></code>. </p> <p> Note that the <a href="http://www.w3.org/International/questions/qa-html-encoding-declarations">W3C Internationalization (i18n) Group recommends</a> @@ -677,8 +676,10 @@ as numeric character references rather than by using literal characters. For example, within an attribute's value, <a class="internalDFN" href="#dfn-polyglot-markup">polyglot markup</a> uses <code>&#x9;</code> for a tab rather than the literal character <code>'\t'</code>. - This is because of attribute-value normalization in XML [<cite><a href="#bib-XML10" rel="biblioentry" class="bibref">XML10</a></cite>]. - The following example uses numeric character references (escaped characters) for the line feed, tab, and less-than characters within a <code>srcdoc</code> attribute. + This is because of attribute-value normalization in XML [<cite><a href="#bib-XML10" rel="biblioentry" class="bibref">XML10</a></cite>]. + + The following example uses numeric character references (escaped +characters) for the line feed, tab, and less-than characters within a <code>srcdoc</code> attribute. </p> <pre class="example"><iframe srcdoc="&lt;p>Hello &#x0A; &#x09; world!&lt;/p>" src="demo_iframe_srcdoc.htm"></iframe></pre> <p class="note"> @@ -998,7 +999,6 @@ - <!-- Appendix --> <div id="acknowledgements" class="appendix section"> <h2><span class="secno">A. </span>Acknowledgements</h2>
Received on Friday, 4 March 2011 19:57:38 UTC