W3C home > Mailing lists > Public > public-html-commits@w3.org > August 2008

html5/spec Overview.html,1.1240,1.1241

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 12 Aug 2008 22:46:35 +0000
To: public-html-commits@w3.org
Message-Id: <E1KT2dP-0005ee-Bk@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv21707

Modified Files:
	Overview.html 
Log Message:
Allow xml:lang= in HTML in certain very specific cases to ease migration. (whatwg r2063)

Index: Overview.html
===================================================================
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:47:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 October 2008 20:32:58 GMT