- From: poot <cvsmail@w3.org>
- Date: Tue, 11 Jan 2011 21:44:27 -0500
- To: public-html-diffs@w3.org
eliot: Added language for <head>, <body>, and <html> per bug 11529;
added language for xhtml namespace declarations on html nested within in
foreign content, per bug 11523; changed "valid XML" to "well formed XML"
in the Intro, per bug 11524;
http://dev.w3.org/cvsweb/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html?r1=1.49&r2=1.50&f=h
===================================================================
RCS file: /sources/public/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- html-xhtml-authoring-guide.html 16 Dec 2010 16:51:15 -0000 1.49
+++ html-xhtml-authoring-guide.html 29 Dec 2010 19:34:04 -0000 1.50
@@ -472,7 +472,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-06-december-2010">W3C Editor's Draft 16 December 2010</h2>
+ <h2 id="w3c-editor-s-draft-06-december-2010">W3C Editor's Draft 29 December 2010</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>
@@ -630,7 +630,7 @@
<em>This section is non-normative.</em>
</p>
<p>
- It is often valuable to be able to serve HTML5 documents that are also valid XML documents.
+ It is often valuable to be able to serve HTML5 documents that are also well formed XML documents.
An author may, for example, use XML tools to generate a document, and they and others may process the document using XML tools.
These documents are served as text/html.
The language used to create documents that can be parsed by both HTML and XML parsers is called <dfn id="dfn-polyglot-markup">polyglot markup</dfn>.
@@ -736,6 +736,9 @@
</ul>
<p></p>
<p>
+ <a class="internalDFN" href="#dfn-polyglot-markup" title="polyglot markup">Polyglot markup</a> declares the default namespaces on the root HTML element <code><html></code>,
+ the root SVG element <code><svg></code>, and the root MathML element <code><math></code>,
+ and on any HTML elements used as children of SVG or MathML elements.
<a class="internalDFN" href="#dfn-polyglot-markup" title="polyglot markup">Polyglot markup</a> does not declare any other default or prefixed element namespace, because
[<cite><a href="#bib-HTML5" rel="biblioentry" class="bibref">HTML5</a></cite>] does not natively support the declaring of any other default or prefixed element namespace.
</p>
@@ -777,6 +780,23 @@
<div id="required-elements" class="section">
<h3><span class="secno">6.1 </span>Required Elements</h3>
+
+ <p>
+ Every <a class="internalDFN" href="#dfn-polyglot-markup">polyglot markup</a> document contains an <code><html></code>, <code><head></code>, <code><title></code>,
+ and <code><body></code> element.
+ The <code><html></code> element is the root element.
+ The <code><head></code> and <code><body></code> elements are children of the <code><html></code> element.
+ The <code><title></code> element is a child of the <code><head></code> element.
+ Therefore, the following source code would be the most basic <a class="internalDFN" href="#dfn-polyglot-markup">polyglot markup</a> document.
+ </p>
+ <pre class="example"><!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+ <head>
+ <title></title>
+ </head>
+ <body>
+ </body>
+</html></pre>
<p>
<a class="internalDFN" href="#dfn-polyglot-markup" title="polyglot markup">Polyglot markup</a> explicitly uses a <code>tbody</code> element surrounding groups of <code>tr</code> elements within a <code>table</code> element.
HTML parsers insert the <code>tbody</code> element, but XML parsers do not, thus creating different DOMs.
@@ -1411,7 +1431,6 @@
<!--End section: Example Document-->
</div>
-
<div id="acknowledgements" class="appendix section">
<!--OddPage--><h2><span class="secno">A. </span>Acknowledgements</h2>
<p>
Received on Wednesday, 12 January 2011 02:44:29 UTC