Skip to content

Commit e61975a

Browse files
AurelioDeRosakswedberg
authored andcommitted
lang-selector.xml The :lang filter should have parentheses
1 parent a18b7f1 commit e61975a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/lang-selector.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<entry type="selector" name="lang" return="">
3-
<title>:lang Selector</title>
3+
<title>:lang() Selector</title>
44
<sample>:lang(language)</sample>
55
<signature>
66
<added>1.9</added>
@@ -10,7 +10,7 @@
1010
</signature>
1111
<desc>Selects all elements of the specified language.</desc>
1212
<longdesc>
13-
<p>The <code>:lang</code> selector matches elements that have a language value equal to the supplied language code or that start with the supplied language code immediately followed by "-". For example, the selector <code>$("div:lang(en)")</code>will match <code>&lt;div lang="en"&gt;</code> and <code>&lt;div lang="en-us"&gt;</code> (and any of their descendant <code>&lt;div&gt;</code>s), but not <code>&lt;div lang="fr"&gt;</code></p>
13+
<p>The <code>:lang()</code> selector matches elements that have a language value equal to the supplied language code or that start with the supplied language code immediately followed by "-". For example, the selector <code>$("div:lang(en)")</code>will match <code>&lt;div lang="en"&gt;</code> and <code>&lt;div lang="en-us"&gt;</code> (and any of their descendant <code>&lt;div&gt;</code>s), but not <code>&lt;div lang="fr"&gt;</code></p>
1414
<p>For HTML elements, the language value is determined by the <code>lang</code> attribute and possibly information from <code>meta</code> elements or HTTP headers.</p>
1515
<p>Further discussion of this usage can be found in the <a href="http://www.w3.org/TR/css3-selectors/#lang-pseudo">W3C CSS specification</a>.</p>
1616
</longdesc>

0 commit comments

Comments
 (0)