[html5] r2062 - [ac] (0) Allow lang='' and xml:lang='' to be specified together in XML, if they [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Aug 12 15:38:20 PDT 2008
Author: ianh
Date: 2008-08-12 15:38:20 -0700 (Tue, 12 Aug 2008)
New Revision: 2062
Modified:
index
source
Log:
[ac] (0) Allow lang='' and xml:lang='' to be specified together in XML, if they are the same.
Modified: index
===================================================================
--- index 2008-08-12 22:27:49 UTC (rev 2061)
+++ index 2008-08-12 22:38:20 UTC (rev 2062)
@@ -471,7 +471,7 @@
<code>title</code> attribute</a>
<li><a href="#the-lang"><span class=secno>3.3.3.3. </span>The
- <code>lang</code> (HTML only) and <code>xml:lang</code> (XML only)
+ <code>lang</code> and <code>xml:lang</code> (XML only)
attributes</a>
<li><a href="#the-xmlbase"><span class=secno>3.3.3.4. </span>The
@@ -7936,7 +7936,7 @@
title=attr-title><a href="#title">title</a></code> content attribute.
<h5 id=the-lang><span class=secno>3.3.3.3. </span>The <dfn id=lang
- title=attr-lang><code>lang</code></dfn> (HTML only) and <dfn id=xmllang
+ title=attr-lang><code>lang</code></dfn> and <dfn id=xmllang
title=attr-xml-lang><code>xml:lang</code></dfn> (XML only) attributes</h5>
<p>The <code title=attr-lang><a href="#lang">lang</a></code> attribute
@@ -7957,17 +7957,21 @@
primary language is unknown.
<p>The <code title=attr-lang><a href="#lang">lang</a></code> attribute may
- be used on elements of <a href="#html-">HTML documents</a>. Authors must
- not use the <code title=attr-lang><a href="#lang">lang</a></code>
- attribute in <a href="#xml-documents">XML documents</a>.
+ be used on any <a href="#html-elements" title="HTML elements">HTML
+ element</a>.
<p>The <code title=attr-xml-lang><a href="#xmllang">xml:lang</a></code>
- attribute may be used on elements of <a href="#xml-documents">XML
- documents</a>. Authors must not use the <code title=attr-xml-lang><a
+ attribute may be used on <a href="#html-elements">HTML elements</a> in <a
+ href="#xml-documents">XML documents</a>, as well as elements in other
+ namespaces if the relevant specifications allow it (in particular, MathML
+ and SVG allow <code title=attr-xml-lang><a
+ href="#xmllang">xml:lang</a></code> attributes to be specified on their
+ elements). Authors must not use the <code title=attr-xml-lang><a
href="#xmllang">xml:lang</a></code> attribute in <a href="#html-">HTML
- documents</a>.</p>
- <!-- technically this is redundant
- with the XML spec -->
+ documents</a>. If both the <code title=attr-lang><a
+ href="#lang">lang</a></code> attribute and the <code
+ title=attr-xml-lang><a href="#xmllang">xml:lang</a></code> attribute are
+ specified on the same element, they must have exactly the same value.
<hr>
Modified: source
===================================================================
--- source 2008-08-12 22:27:49 UTC (rev 2061)
+++ source 2008-08-12 22:38:20 UTC (rev 2062)
@@ -5785,9 +5785,9 @@
content attribute.</p>
- <h5>The <dfn title="attr-lang"><code>lang</code></dfn> (HTML only)
- and <dfn title="attr-xml-lang"><code>xml:lang</code></dfn> (XML
- only) attributes</h5>
+ <h5>The <dfn title="attr-lang"><code>lang</code></dfn> and <dfn
+ title="attr-xml-lang"><code>xml:lang</code></dfn> (XML only)
+ attributes</h5>
<p>The <code title="attr-lang">lang</code> attribute specifies the
primary <dfn>language</dfn> for the element's contents and for any
@@ -5807,15 +5807,19 @@
that the primary language is unknown.</p>
<p>The <code title="attr-lang">lang</code> attribute may be used on
- elements of <span>HTML documents</span>. Authors must not use the
- <code title="attr-lang">lang</code> attribute in <span>XML
- documents</span>.</p>
+ any <span title="HTML elements">HTML element</span>.</p>
<p>The <code title="attr-xml-lang">xml:lang</code> attribute may be
- used on elements of <span>XML documents</span>. Authors must not
- use the <code title="attr-xml-lang">xml:lang</code> attribute in
- <span>HTML documents</span>.</p> <!-- technically this is redundant
- with the XML spec -->
+ used on <span>HTML elements</span> in <span>XML documents</span>, as
+ well as elements in other namespaces if the relevant specifications
+ allow it (in particular, MathML and SVG allow <code
+ title="attr-xml-lang">xml:lang</code> attributes to be specified on
+ their elements). Authors must not use the <code
+ title="attr-xml-lang">xml:lang</code> attribute in <span>HTML
+ documents</span>. If both the <code title="attr-lang">lang</code>
+ attribute and the <code title="attr-xml-lang">xml:lang</code>
+ attribute are specified on the same element, they must have exactly
+ the same value.</p>
<hr>
More information about the Commit-Watchers
mailing list