The Table
| E[foo] | Matches an E element with foo attribute |
| E[foo="bar"] | Matches an E element whose foo attribute is (exactly) equal to bar |
| E[foo^="bar"] | Matches an E elelement whose foo attribute begins (exactly) with the string bar |
| E[foo$="bar"] | Matches an E element whose foo attribute ends (exactly) with the string bar |
| E[foo*="bar"] | Matches an E element whose foo attribute contains the substring bar |
| E[foo|="bar"] | Matches an E element whose foo attribute has a hyphen-separated list of values beginning with bar from the left |
| E:enabled E:disabled |
Matches an E element that is enabled/disabled |
| E:contains("foo") | Matches an E element containg the substring foo in its textual contents |
| E + F | Matches an F element immediately preceded by an E element |
| E ~ F | Matches an F element preceded by an E element |












