@@ -1849,9 +1849,10 @@ The Directionality Pseudo-class: '':dir()''</h3>
1849
1849
<h3 id="the-lang-pseudo">
1850
1850
The Language Pseudo-class: '':lang()''</h3>
1851
1851
1852
- If the document language specifies how the (human) content language of an
1853
- element is determined, it is possible to write selectors that
1854
- represent an element based on its language.
1852
+ If the document language specifies how
1853
+ the (human) <a>content language</a> of an element is determined,
1854
+ it is possible to write selectors that
1855
+ represent an element based on its <a>content language</a> .
1855
1856
The <dfn id='lang-pseudo'>:lang()</dfn> pseudo-class represents an element that
1856
1857
is in one of the languages listed in its argument. It accepts
1857
1858
a comma-separated list of one or more <a>language ranges</a> as its
@@ -1860,15 +1861,15 @@ The Language Pseudo-class: '':lang()''</h3>
1860
1861
(Language ranges containing asterisks, for example,
1861
1862
must be quoted as strings.)
1862
1863
1863
- The <dfn> language</dfn > of an element is defined by the document language.
1864
- For example, in HTML [[HTML401 ]] , the <a>language</a> is determined by a
1864
+ Note: The <a>content language</a > of an element is defined by the document language.
1865
+ For example, in HTML [[HTML5 ]] , the <a>language</a> is determined by a
1865
1866
combination of the <code> lang</code> attribute, information from
1866
1867
<a element>meta</a> elements, and possibly also the protocol (e.g.
1867
1868
from HTTP headers). XML languages can use the <code> xml:lang</code>
1868
- attribute to indicate language information for an element.
1869
+ attribute to indicate language information for an element. [[XML10]]
1869
1870
1870
- The element's <a>language</a> matches a <a>language range</a> if
1871
- the element's <a>language</a> (normalized to BCP 47 syntax if necessary)
1871
+ The element's <a>content language</a> matches a <a>language range</a> if
1872
+ its <a>content language</a> (normalized to BCP 47 syntax if necessary)
1872
1873
matches the given <a>language range</a> in an <var> extended filtering</var>
1873
1874
operation per [[RFC4647]] <cite> Matching of Language Tags</cite> (section 3.3.2).
1874
1875
The matching is performed case-insensitively within the ASCII range.
0 commit comments