Skip to content

Commit 3cff5d8

Browse files
committed
[selectors-4] Canonicalize into extlang form prior to :lang() matching
Fixes #4154
1 parent 5a347e8 commit 3cff5d8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

selectors-4/Overview.bs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Abstract: Selectors Level 4 describes the selectors that already exist in [[!SEL
2424
At Risk: the column combinator
2525
At Risk: the '':read-write'' pseudo-class
2626
Ignored Terms: function token, Document, DocumentFragment, math, h1, shadow tree, querySelector(), quirks mode, button, a, span, object, p, div, q, area, link, label, input, html, em, li, ol, pre, CSS Value Definition Syntax
27-
Ignored Vars: identifier, extended filtering, i
27+
Ignored Vars: identifier, i
2828
</pre>
2929
<pre class=link-defaults>
3030
spec:css-syntax-3; type:dfn; text:identifier
@@ -1925,8 +1925,12 @@ The Language Pseudo-class: '':lang()''</h3>
19251925

19261926
The element's <a>content language</a> matches a <a>language range</a> if
19271927
its <a>content language</a>, as represented in BCP 47 syntax,
1928-
matches the given <a>language range</a> in an <var>extended filtering</var>
1929-
operation per [[RFC4647]] <cite>Matching of Language Tags</cite> (section 3.3.2).
1928+
matches the given <a>language range</a> in an <i>extended filtering</i>
1929+
operation per [[!RFC4647]] <cite>Matching of Language Tags</cite> (section 3.3.2).
1930+
Both the [=content language=] and the [=language range=]
1931+
must be <i>canonicalized</i>
1932+
and converted to <i>extlang form</i> as per section 4.5 of [[!RFC5646]]
1933+
prior to the <i>extended filtering</i> operation.
19301934
The matching is performed case-insensitively within the ASCII range.
19311935
The <a>language range</a> does not need to be a valid language code to
19321936
perform this comparison.

0 commit comments

Comments
 (0)