Skip to content

Commit 9eed0f9

Browse files
committed
[selectors-4] Defer to css-text for definition of content language so there's only one defining instance. Fixes #897.
1 parent 46c51c4 commit 9eed0f9

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

selectors-4/Overview.bs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,9 +1849,10 @@ The Directionality Pseudo-class: '':dir()''</h3>
18491849
<h3 id="the-lang-pseudo">
18501850
The Language Pseudo-class: '':lang()''</h3>
18511851

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>.
18551856
The <dfn id='lang-pseudo'>:lang()</dfn> pseudo-class represents an element that
18561857
is in one of the languages listed in its argument. It accepts
18571858
a comma-separated list of one or more <a>language ranges</a> as its
@@ -1860,15 +1861,15 @@ The Language Pseudo-class: '':lang()''</h3>
18601861
(Language ranges containing asterisks, for example,
18611862
must be quoted as strings.)
18621863

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
18651866
combination of the <code>lang</code> attribute, information from
18661867
<a element>meta</a> elements, and possibly also the protocol (e.g.
18671868
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]]
18691870

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)
18721873
matches the given <a>language range</a> in an <var>extended filtering</var>
18731874
operation per [[RFC4647]] <cite>Matching of Language Tags</cite> (section 3.3.2).
18741875
The matching is performed case-insensitively within the ASCII range.

0 commit comments

Comments
 (0)