Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ac] (0) Allow lang='' and xml:lang='' to be specified together in XM…
…L, if they are the same.

git-svn-id: http://svn.whatwg.org/webapps@2062 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 12, 2008
1 parent f0e5ab6 commit a49286c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 20 deletions.
24 changes: 14 additions & 10 deletions index
Expand Up @@ -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
Expand Down Expand Up @@ -7936,7 +7936,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
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
Expand All @@ -7957,17 +7957,21 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
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>

Expand Down
24 changes: 14 additions & 10 deletions source
Expand Up @@ -5785,9 +5785,9 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
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
Expand All @@ -5807,15 +5807,19 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
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>

Expand Down

0 comments on commit a49286c

Please sign in to comment.