spec/Overview.html 1.1241 2063 Allow xml:lang= in HTML in certain very

Allow xml:lang= in HTML in certain very specific cases to ease
migration. (whatwg r2063)

title
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1241.html#title0
3.3.3.3. The lang and xml:lang (XML only) attributes
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1241.html#the-lang
xml:lang
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1241.html#xmllang
language
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1241.html#language

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1240&r2=1.1241&f=h
http://html5.org/tools/web-apps-tracker?from=2062&to=2063

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1240
retrieving revision 1.1241
diff -u -d -r1.1240 -r1.1241
--- Overview.html 12 Aug 2008 22:27:53 -0000 1.1240
+++ Overview.html 12 Aug 2008 22:46:32 -0000 1.1241
@@ -479,7 +479,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
@@ -7944,7 +7944,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
@@ -7965,17 +7965,31 @@
    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
-   href="#xmllang">xml:lang</a></code> attribute in <a href="#html-">HTML
-   documents</a>.</p>
-  <!-- technically this is redundant
-  with the XML spec -->
+   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). 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>

Received on Tuesday, 12 August 2008 22:49:46 UTC