[html5] r4943 - [e] (0) cleanup of the lang='' processing for clarity. Fixing http://www.w3.org/ [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Apr 1 17:01:07 PDT 2010
Author: ianh
Date: 2010-04-01 17:01:06 -0700 (Thu, 01 Apr 2010)
New Revision: 4943
Modified:
complete.html
index
source
Log:
[e] (0) cleanup of the lang='' processing for clarity.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9263
Modified: complete.html
===================================================================
--- complete.html 2010-04-01 23:51:18 UTC (rev 4942)
+++ complete.html 2010-04-02 00:01:06 UTC (rev 4943)
@@ -8906,7 +8906,8 @@
if the node is an element) that has a <a href=#attr-xml-lang title=attr-xml-lang><code title="">lang</code> attribute in the
<span>XML namespace</span></a> set or is an <a href=#html-elements title="HTML
elements">HTML element</a> and has a <code title=attr-lang><a href=#attr-lang>lang</a></code> in no namespace attribute set. That
- attribute specifies the language of the node.</p>
+ attribute specifies the language of the node (regardless of its
+ value).</p>
<p>If both the <code title=attr-lang><a href=#attr-lang>lang</a></code> attribute in no
namespace and the <a href=#attr-xml-lang title=attr-xml-lang><code title="">lang</code> attribute in the <span>XML
@@ -8916,18 +8917,17 @@
<a href=#ignore title=ignore>ignored</a> for the purposes of determining
the element's language.</p>
- <p>If no explicit language is given for any ancestors of the node,
- including the <a href=#root-element>root element</a>, but there is a
+ <p>If none of the node's ancestors, including the <a href=#root-element>root
+ element</a>, have either attribute set, but there is a
<a href=#pragma-set-default-language>pragma-set default language</a> set, then that is the
- language of the node.</p>
+ language of the node. If there is no <a href=#pragma-set-default-language>pragma-set default
+ language</a> set, then language information from a higher-level
+ protocol (such as HTTP), if any, must be used as the final fallback
+ language instead. In the absence of any such language information,
+ and in cases where the higher-level protocol reports multiple
+ languages, the language of the node is unknown, and the
+ corresponding language code is the empty string.</p>
- <p>If there is no <a href=#pragma-set-default-language>pragma-set default language</a>, then
- language information from a higher-level protocol (such as HTTP), if
- any, must be used as the final fallback language. In the absence of
- any language information, and in cases where the higher-level
- protocol reports multiple languages, the language of the node is
- unknown (the empty string).</p>
-
<p>If the resulting value is not a recognized language code, then it
must be treated as an unknown language having the given language
code, distinct from all other languages. For the purposes of
@@ -8943,6 +8943,10 @@
"xyzzy", even if it knew it was invalid, just in case the screen
reader actually supported a language with that code after all.</p>
+ <p>If the resulting value is the empty string, then it must be
+ interpreted as meaning that the language of the node is explicitly
+ unknown.</p>
+
<hr><p>User agents may use the element's language to determine proper
processing or rendering (e.g. in the selection of appropriate
fonts or pronunciations, or for dictionary selection). <!--User
@@ -8957,6 +8961,7 @@
</div>
+
<h5 id=the-xml:base-attribute-(xml-only)><span class=secno>3.2.3.4 </span>The <dfn title=attr-xml-base><code>xml:base</code></dfn>
attribute (XML only)</h5>
Modified: index
===================================================================
--- index 2010-04-01 23:51:18 UTC (rev 4942)
+++ index 2010-04-02 00:01:06 UTC (rev 4943)
@@ -8804,7 +8804,8 @@
if the node is an element) that has a <a href=#attr-xml-lang title=attr-xml-lang><code title="">lang</code> attribute in the
<span>XML namespace</span></a> set or is an <a href=#html-elements title="HTML
elements">HTML element</a> and has a <code title=attr-lang><a href=#attr-lang>lang</a></code> in no namespace attribute set. That
- attribute specifies the language of the node.</p>
+ attribute specifies the language of the node (regardless of its
+ value).</p>
<p>If both the <code title=attr-lang><a href=#attr-lang>lang</a></code> attribute in no
namespace and the <a href=#attr-xml-lang title=attr-xml-lang><code title="">lang</code> attribute in the <span>XML
@@ -8814,18 +8815,17 @@
<a href=#ignore title=ignore>ignored</a> for the purposes of determining
the element's language.</p>
- <p>If no explicit language is given for any ancestors of the node,
- including the <a href=#root-element>root element</a>, but there is a
+ <p>If none of the node's ancestors, including the <a href=#root-element>root
+ element</a>, have either attribute set, but there is a
<a href=#pragma-set-default-language>pragma-set default language</a> set, then that is the
- language of the node.</p>
+ language of the node. If there is no <a href=#pragma-set-default-language>pragma-set default
+ language</a> set, then language information from a higher-level
+ protocol (such as HTTP), if any, must be used as the final fallback
+ language instead. In the absence of any such language information,
+ and in cases where the higher-level protocol reports multiple
+ languages, the language of the node is unknown, and the
+ corresponding language code is the empty string.</p>
- <p>If there is no <a href=#pragma-set-default-language>pragma-set default language</a>, then
- language information from a higher-level protocol (such as HTTP), if
- any, must be used as the final fallback language. In the absence of
- any language information, and in cases where the higher-level
- protocol reports multiple languages, the language of the node is
- unknown (the empty string).</p>
-
<p>If the resulting value is not a recognized language code, then it
must be treated as an unknown language having the given language
code, distinct from all other languages. For the purposes of
@@ -8841,6 +8841,10 @@
"xyzzy", even if it knew it was invalid, just in case the screen
reader actually supported a language with that code after all.</p>
+ <p>If the resulting value is the empty string, then it must be
+ interpreted as meaning that the language of the node is explicitly
+ unknown.</p>
+
<hr><p>User agents may use the element's language to determine proper
processing or rendering (e.g. in the selection of appropriate
fonts or pronunciations, or for dictionary selection). <!--User
@@ -8855,6 +8859,7 @@
</div>
+
<h5 id=the-xml:base-attribute-(xml-only)><span class=secno>3.2.3.4 </span>The <dfn title=attr-xml-base><code>xml:base</code></dfn>
attribute (XML only)</h5>
Modified: source
===================================================================
--- source 2010-04-01 23:51:18 UTC (rev 4942)
+++ source 2010-04-02 00:01:06 UTC (rev 4943)
@@ -8889,7 +8889,8 @@
<span>XML namespace</span></span> set or is an <span title="HTML
elements">HTML element</span> and has a <code
title="attr-lang">lang</code> in no namespace attribute set. That
- attribute specifies the language of the node.</p>
+ attribute specifies the language of the node (regardless of its
+ value).</p>
<p>If both the <code title="attr-lang">lang</code> attribute in no
namespace and the <span title="attr-xml-lang"><code
@@ -8901,18 +8902,17 @@
<span title="ignore">ignored</span> for the purposes of determining
the element's language.</p>
- <p>If no explicit language is given for any ancestors of the node,
- including the <span>root element</span>, but there is a
+ <p>If none of the node's ancestors, including the <span>root
+ element</span>, have either attribute set, but there is a
<span>pragma-set default language</span> set, then that is the
- language of the node.</p>
+ language of the node. If there is no <span>pragma-set default
+ language</span> set, then language information from a higher-level
+ protocol (such as HTTP), if any, must be used as the final fallback
+ language instead. In the absence of any such language information,
+ and in cases where the higher-level protocol reports multiple
+ languages, the language of the node is unknown, and the
+ corresponding language code is the empty string.</p>
- <p>If there is no <span>pragma-set default language</span>, then
- language information from a higher-level protocol (such as HTTP), if
- any, must be used as the final fallback language. In the absence of
- any language information, and in cases where the higher-level
- protocol reports multiple languages, the language of the node is
- unknown (the empty string).</p>
-
<p>If the resulting value is not a recognized language code, then it
must be treated as an unknown language having the given language
code, distinct from all other languages. For the purposes of
@@ -8930,6 +8930,10 @@
"xyzzy", even if it knew it was invalid, just in case the screen
reader actually supported a language with that code after all.</p>
+ <p>If the resulting value is the empty string, then it must be
+ interpreted as meaning that the language of the node is explicitly
+ unknown.</p>
+
<hr>
<p>User agents may use the element's language to determine proper
@@ -8948,6 +8952,7 @@
</div>
+
<h5>The <dfn title="attr-xml-base"><code>xml:base</code></dfn>
attribute (XML only)</h5>
More information about the Commit-Watchers
mailing list