Chapter 5 - Selectors - 5.8 Attribute selectors
Go to the relevant page of the specification.
- attribute-000
-
Selectors: Attribute selectors: Generic match
Browsers should apply each rule to the elements with the specified attribute, disregarding its value - attribute-001
-
Selectors: Attribute selectors: Generic match with the universal selector
Browsers should apply each rule to the elements with the specified attribute, disregarding its value - attribute-002
-
Selectors: Attribute selectors: Exact match
Browsers should apply each rule to the elements with the specified attribute and the specified value - attribute-003
-
Selectors: Attribute selectors: Exact match with the universal selector
Browsers should apply each rule to the elements with the specified attribute and the specified value - attribute-004
-
Selectors: Attribute selectors: Partial match
Browsers should apply each rule to the elements with one of the values separated by a space - attribute-005
-
Selectors: Attribute selectors: Partial match with the universal selector
Browsers should apply each rule to the elements with one of the values separated by a space - attribute-006
-
Selectors: Attribute selectors: Substring matching
Browsers should apply each rule to the elements which have an hyphen-separated list of attribute values - attribute-007
-
Selectors: Attribute selectors: Substring matching with the universal selector
Browsers should apply each rule to the elements which have an hyphen-separated list of attribute values - attribute-selector-001
-
ID selector without value and no matching element
Attribute selector without a value matches any element which has that attribute set. - attribute-selector-002
-
Attribute selector without value
Attribute selector without a value matches any element which has that attribute set. - attribute-value-selector-001
-
Attribute selector matching value
Selector matches attribute with specific value. - attribute-value-selector-002
-
Attribute selector matching value in hyphenated list
Selector matches attributes with specific value in a hyphen-separated list. - attribute-value-selector-003
-
Attribute selector matching value in list
Selector matches attribute with specific value in a space-separated list. - attribute-value-selector-004 (invalid)
-
Numeric attributes
Attributes cannot begin with numerals. - attribute-value-selector-005 (HTMLonly)
-
Case sensitivity of attributes and attribute values in HTML 4.01
HTML 4.01 attribute names are not case sensitive. - attribute-value-selector-006
-
Multiple and repeating attributes
Multiple attribute selectors can be used to refer to several attributes of an element, or even several times to the same attribute. - attribute-value-selector-007 (HTMLonly)
-
lang attribute selector - att=val
lang attribute selector with att=val in HTML should not be case sensitive, and should only match when att is exactly val - attribute-value-selector-008 (nonHTML)
-
attribute selector - att=val
attribute selector with att=val in XHTML should be case sensitive, and should only match when att is exactly val - attribute-value-selector-009 (nonHTML)
-
lang attribute selector - att |= val
lang attribute selector with 'att |= val' in XHTML should be case sensitive, and match hyphen-separated list - attribute-value-selector-010 (HTMLonly)
-
lang attribute selector - att |= val
lang attribute selector with 'att |= val' in HTML should not be case sensitive, and match hyphen-separated list - dynamic-sibling-combinator-001 (dom)
-
Testing dynamic changes and the '+' combinator
Dynamically changing an attribute should cause selectors using '+' to match as needed. - html-case-sensitivity-001 (HTMLonly)
-
HTML case sensitivity - Simple selectors
Simple selectors are not case sensitive in HTML.