Skip to content

Commit 81a0948

Browse files
committed
[selectors] Make :lang() argument an ident or string, per WG resolution.
1 parent 13b9f7b commit 81a0948

2 files changed

Lines changed: 3822 additions & 1936 deletions

File tree

selectors/Overview.bs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Selectors Overview</h2>
202202
<td>[[#the-dir-pseudo]]
203203
<td>4
204204
<tr>
205-
<td><code>E:lang(zh, *-hant)</code>
205+
<td><code>E:lang(zh, "*-hant")</code>
206206
<td>an element of type E tagged as being either in Chinese
207207
(any dialect or writing system)
208208
or othewise written with traditional Chinese characters
@@ -1905,10 +1905,9 @@ The Language Pseudo-class: '':lang()''</h3>
19051905
is in one of the languages listed in its argument. It accepts
19061906
a comma-separated list of one or more <a>language ranges</a> as its
19071907
argument. Each <dfn>language range</dfn> in '':lang()''
1908-
must be a valid CSS <a href="http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier">identifier</a>
1909-
[[!CSS21]]
1910-
or consist of an asterisk (* U+002A) immediately followed by an identifier
1911-
beginning with an ASCII hyphen (U+002D) for the selector to be valid.
1908+
must be a valid CSS <<ident>> or <<string>>.
1909+
(Language ranges containing asterisks, for example,
1910+
must be quoted as strings.)
19121911

19131912
The <dfn>language</dfn> of an element is defined by the document language.
19141913
For example, in HTML [[HTML401]], the <a>language</a> is determined by a

0 commit comments

Comments
 (0)