Chapter 5 - Selectors - 5.11.4 The language pseudo-class: :lang
Go to the relevant page of the specification.
- lang-pseudoclass-001 (HTMLonly)
-
:lang pseudoclass
:lang pseudoclass in HTML should not be case-sensitive, and match a substring - lang-pseudoclass-002 (nonHTML)
-
:lang pseudoclass
:lang pseudoclass in XHTML should be case sensitive, and match a substring - lang-selector-001
-
Selectors :lang pseudo-class
The :lang pseudo-class selector matches any element with a matching lang attribute. - lang-selector-002 (invalid)
-
Empty :lang selector
Language identifier cannot be empty. - lang-selector-003
-
Invalid language name for :lang selector
The language identifier in the :lang selector doesn't have to be a valid language name. - lang-selector-004
-
Inherited lang attribute selected
Lang attribute is inherited and lang selector works on children. - lang-selector-005 (http)
-
Lang selector and document language set via server's content-language
Lang attribute is selectable when specified by HTTP header. - lang-selector-006
-
Lang selector and document language set via meta tag
Lang attribute is selectable when specified in a meta tag.