W3C home > Mailing lists > Public > public-html-commits@w3.org > April 2011

html5/html-xhtml-author-guide html-xhtml-authoring-guide.html,1.73,1.74

From: Eliot Graff via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 07 Apr 2011 21:11:23 +0000
To: public-html-commits@w3.org
Message-Id: <E1Q7wU7-0005OK-TV@lionel-hutz.w3.org>
Update of /sources/public/html5/html-xhtml-author-guide
In directory hutz:/tmp/cvs-serv20710

Modified Files:
	html-xhtml-authoring-guide.html 
Log Message:
Rewrote section 7.2, Language Attributes, per comments 21-25 of bug 10152.

Index: html-xhtml-authoring-guide.html
===================================================================
RCS file: /sources/public/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- html-xhtml-authoring-guide.html	18 Mar 2011 23:26:29 -0000	1.73
+++ html-xhtml-authoring-guide.html	7 Apr 2011 21:11:21 -0000	1.74
@@ -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-18-march-2011">W3C Editor's Draft 18 March 2011</h2>
+		<h2 id="w3c-editor-s-draft-07-april-2011">W3C Editor's Draft 7 April 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>
@@ -25,8 +25,11 @@
 			<dt>Latest editor's draft:</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>
 			
-			<dt>Previous version:</dt>
+			<dt>Previous versions:</dt>
+			<dd><a href="http://www.w3.org/TR/2011/WD-html-polyglot-20110405/">http://www.w3.org/TR/2011/WD-html-polyglot-20110405/</a></dd>
+			<dd><a href="http://www.w3.org/TR/2011/WD-html-polyglot-20110113/">http://www.w3.org/TR/2011/WD-html-polyglot-20110113/</a></dd>
 			<dd><a href="http://www.w3.org/TR/2010/WD-html-polyglot-20101019/">http://www.w3.org/TR/2010/WD-html-polyglot-20101019/</a></dd>
+			<dd><a href="http://www.w3.org/TR/2010/WD-html-polyglot-20100624/">http://www.w3.org/TR/2010/WD-html-polyglot-20100624/</a></dd>
 			
 			<dt>Editor:</dt>
 			<dd><span>Eliot Graff</span>, Microsoft Corporation</dd>
@@ -767,22 +770,22 @@
 	
 	<div id="language-attributes" class="section">
 	<h3><span class="secno">7.2 </span>Language Attributes</h3>
-		<p>When specifying the language mapping of an element, <a class="internalDFN" href="#dfn-polyglot-markup">polyglot markup</a> uses both the <code>lang</code> and <code>xml:lang</code> attributes. 
+		<p>
+			When specifying the language mapping of an element, <a class="internalDFN" href="#dfn-polyglot-markup">polyglot markup</a> uses both the <code>lang</code> and <code>xml:lang</code> attributes. 
 			Neither attribute is to be used without the other, and <a class="internalDFN" href="#dfn-polyglot-markup">polyglot markup</a> maintains identical values for both <code>lang</code> and <code>xml:lang</code>.</p>
 		<p>
-			<a class="internalDFN" href="#dfn-polyglot-markup" title="polyglot markup">Polyglot markup</a> uses the language attributes in the <code>html</code> element to set the default language for the document.
+			<a class="internalDFN" href="#dfn-polyglot-markup" title="polyglot markup">Polyglot markup</a> uses the language attributes in the <code>html</code>
+ element to set the default language for the document overtly.
+			Although HTML5 sets the language of the root element via a fallback 
+language mechanism, this mechanism is not required to work in XML.
+
 		</p>
 		<p class="note">
-			Whenever either the <code>http-equiv="content-language"</code> attribute on the <code>meta</code> element 
-			or an HTTP Content-Language: header specifies the language of the root element, 
-			then <a class="internalDFN" href="#dfn-polyglot-markup">polyglot markup</a> is required to specify the language mapping of the root element.
-			According to <a href="http://dev.w3.org/html5/spec/semantics.html#attr-meta-http-equiv-content-language">Content language state</a> in [<cite><a href="#bib-HTML5" rel="biblioentry" class="bibref">HTML5</a></cite>], 
-			the <code>http-equiv="content-language"</code> attribute on the <code>meta</code> element specifices the language of the root element 
-			whenever its <code>content</code> attribute contains no more and no 
-less than exactly one language tag. 
-			Therefore, not specifying the language mapping of the root element 
-would mean that HTML5 would interpret this as setting the default 
-language for the root element, while XML did not.
+			HTML5 activates the fallback language mechanism whenever the root element lacks language attributes. 
+			For the mechanism to actually set a fallback language, however, it has to locate either an <code>http-equiv="Content-Language"</code> declaration on the <code>meta</code> element 
+			or an <code>HTTP Content-Language:</code> header, either of whose content value is no more and no less than exactly one language tag.
+			Note that although the mechanism can locate either the meta element or the header, the meta element is considered first. 
+			For more information about determining language in HTML5, see the <a href="http://www.w3.org/TR/html5/elements#language">language determination rules</a>. [<cite><a href="#bib-HTML5" rel="biblioentry" class="bibref">HTML5</a></cite>].
 		</p>
 
 <!--End section: Language Attributes-->
Received on Thursday, 7 April 2011 21:11:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 7 April 2011 21:11:26 GMT