From bb57e97503a9311938d3e30d8baf0d5fb9919946 Mon Sep 17 00:00:00 2001 From: Aurelio De Rosa Date: Sun, 2 Jun 2013 18:10:15 +0300 Subject: [PATCH] Update lang-selector.xml The :lang filter should have parenthesis, just like :contains() and :has(), because it accepts a parameter. --- entries/lang-selector.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entries/lang-selector.xml b/entries/lang-selector.xml index e7431c64..8858e598 100644 --- a/entries/lang-selector.xml +++ b/entries/lang-selector.xml @@ -1,6 +1,6 @@ - :lang Selector + :lang() Selector :lang(language) 1.9 @@ -10,7 +10,7 @@ Selects all elements of the specified language. -

The :lang 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 $("div:lang(en)")will match <div lang="en"> and <div lang="en-us"> (and any of their descendant <div>s), but not <div lang="fr">

+

The :lang() 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 $("div:lang(en)")will match <div lang="en"> and <div lang="en-us"> (and any of their descendant <div>s), but not <div lang="fr">

For HTML elements, the language value is determined by the lang attribute and possibly information from meta elements or HTTP headers.

Further discussion of this usage can be found in the W3C CSS specification.