Permalink
Browse files

[ac] (0) Allow xml:lang= in HTML in certain very specific cases to ea…

…se migration.

git-svn-id: http://svn.whatwg.org/webapps@2063 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent a49286c commit 284030ab6fb89f92e589ded0d9ee0352f25630a1 @Hixie Hixie committed Aug 12, 2008
Showing with 27 additions and 6 deletions.
  1. +13 −3 index
  2. +14 −3 source
View
16 index
@@ -7966,13 +7966,23 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
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>. If both the <code title=attr-lang><a
+ elements). 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.
+ <p>Authors must not use the <code title=attr-xml-lang><a
+ href="#xmllang">xml:lang</a></code> attribute (that is, the <code
+ title="">lang</code> attribute with the <code title="">xml</code> prefix
+ in the <code title="">http://www.w3.org/XML/1998/namespace</code>
+ namespace) in <a href="#html-">HTML documents</a>. To ease migration to
+ and from XHTML, authors may specify an attribute in no namespace with no
+ prefix and with the localname <code title="">xml:lang</code> on <a
+ href="#html-elements">HTML elements</a> in <a href="#html-">HTML
+ documents</a>, but such attributes must only be specified if a <code
+ title=attr-lang><a href="#lang">lang</a></code> attribute is also
+ specified, and both attributes must have the same value.
+
<hr>
<p>To determine the language of a node, user agents must look at the
View
17 source
@@ -5814,13 +5814,24 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
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>
+ their elements). 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>
+ <p>Authors must not use the <code
+ title="attr-xml-lang">xml:lang</code> attribute (that is, the <code
+ title="">lang</code> attribute with the <code title="">xml</code>
+ prefix in the <code
+ title="">http://www.w3.org/XML/1998/namespace</code> namespace) in
+ <span>HTML documents</span>. To ease migration to and from XHTML,
+ authors may specify an attribute in no namespace with no prefix and
+ with the localname <code title="">xml:lang</code> on <span>HTML
+ elements</span> in <span>HTML documents</span>, but such attributes
+ must only be specified if a <code title="attr-lang">lang</code>
+ attribute is also specified, and both attributes must have the same
+ value.</p>
+
<hr>
<p>To determine the language of a node, user agents must look at the

0 comments on commit 284030a

Please sign in to comment.