Skip to content

Commit a407bba

Browse files
committed
[selectors-4] Reword constraints on language ranges, as suggested by reviewer; see w3c#8720
Co-authored by: Addison Phillips <addisonI18N@gmail.com>
1 parent 32d875d commit a407bba

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

selectors-4/Overview.bs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2640,10 +2640,14 @@ The Language Pseudo-class: '':lang()''</h3>
26402640
prior to the <i>extended filtering</i> operation.
26412641
The matching is performed [=ASCII case-insensitively=].
26422642

2643-
The <a>language range</a>
2644-
must be <em>well-formed</em> according to the syntax of BCP 47 in order to match.
2645-
However, it does not need to be a <em>valid</em> language code to
2646-
perform this comparison.
2643+
The <a>language range</a>
2644+
must be an extended language range according to BCP47.
2645+
Language ranges that are not
2646+
<a href="https://www.w3.org/TR/i18n-glossary/#dfn-well-formed">well-formed</a> language tags
2647+
or which would not be a well-formed language tag
2648+
if an initial wildcard character "*"
2649+
were replaced with a valid subtag,
2650+
do not match anything.
26472651

26482652
<div class="example">
26492653
For example,

0 commit comments

Comments
 (0)