Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions selectors-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1915,10 +1915,17 @@ The Language Pseudo-class: '':lang()''</h3>
when represented in BCP 47 syntax [[BCP47]],
it matches that <a>language range</a> in an <var>extended filtering</var>
operation per [[RFC4647]] <cite>Matching of Language Tags</cite> (section 3.3.2).
For this purpose, a wildcard [=language range=] (<code>"*"</code>) does not match
elements whose language is not tagged (e.g. <code>lang=""</code>),
but does match elements whose language is tagged as undetermined (<code>lang=und</code>).
The matching is performed [=ASCII case-insensitively=].
The <a>language range</a> does not need to be a valid language code to
perform this comparison.

A [=language range=] consisting of an empty string
('':lang("")'')
matches (only) elements whose language is not tagged.

Note: It is recommended that documents and protocols
indicate language using codes from [[BCP47]] or its successor,
and in the case of XML-based formats, by means of <code>xml:lang</code> attributes. [[XML10]]
Expand Down