[html5] r2056 - [] (0) How to determine the language of the node if the language code isn't reco [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Aug 12 02:32:30 PDT 2008


Author: ianh
Date: 2008-08-12 02:32:29 -0700 (Tue, 12 Aug 2008)
New Revision: 2056

Modified:
   index
   source
Log:
[] (0) How to determine the language of the node if the language code isn't recognised. (Subject: Effect of bogus lang on determining natural language) (credit: hs)

Modified: index
===================================================================
--- index	2008-08-12 01:12:00 UTC (rev 2055)
+++ index	2008-08-12 09:32:29 UTC (rev 2056)
@@ -7972,7 +7972,9 @@
    href="#xmllang">xml:lang</a></code> attribute set or is an <a
    href="#html-elements" title="HTML elements">HTML element</a> and has a
    <code title=attr-lang><a href="#lang">lang</a></code> attribute set. That
-   attribute specifies the language of the node.
+   attribute specifies the language of the node. If that attribute's value is
+   not a recognised language code, then it must be treated as an unknown
+   language (as if the value was the empty string).
 
   <p>If both the <code title=attr-xml-lang><a
    href="#xmllang">xml:lang</a></code> attribute and the <code

Modified: source
===================================================================
--- source	2008-08-12 01:12:00 UTC (rev 2055)
+++ source	2008-08-12 09:32:29 UTC (rev 2056)
@@ -5820,7 +5820,9 @@
   title="attr-xml-lang">xml:lang</code> attribute set or is an <span
   title="HTML elements">HTML element</span> and has a <code
   title="attr-lang">lang</code> attribute set. That attribute
-  specifies the language of the node.</p>
+  specifies the language of the node. If that attribute's value is not
+  a recognised language code, then it must be treated as an unknown
+  language (as if the value was the empty string).</p>
 
   <p>If both the <code title="attr-xml-lang">xml:lang</code> attribute
   and the <code title="attr-lang">lang</code> attribute are set on an




More information about the Commit-Watchers mailing list