Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
This comment has been minimized.
Sorry, something went wrong. |
||
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, | ||
This comment has been minimized.
Sorry, something went wrong.
aphillips
Contributor
|
||
and in the case of XML-based formats, by means of <code>xml:lang</code> attributes. [[XML10]] | ||
|
1 comment
on commit 9b51686
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for an ex post facto set of comments: I didn't see this until I checked up on @frivoal's action item for I18N...
Nit: BCP47 tends to prefer the term
tag
to the termcode
.Note that "valid" has special meaning in BCP47 and there is also another type of validation called "well-formed". In this case, I think you are trying to say that the language range does not need to be valid or well-formed (i.e. it can be a garbage string and it won't match anything).
Best practices for this are found here in our specdev document.