Skip to content
Skip the list of specifications

css/selectors/parsing/

parse-attribute.html

Passes: all 16 assertions match

A parsing check: each value the parser must accept or reject.

Run it in the playgroundThe fileOn GitHubBrowsers’ results on wpt.fyi

Each assertion

A passing assertion got what it asked for, so only a failing one shows what it expected and what it got.

AssertionExpectedGotVerdict
"[att]" should be a valid selectorPasses
"[att=val]" should be a valid selectorPasses
"[att~=val]" should be a valid selectorPasses
"[att|=val]" should be a valid selectorPasses
"h1[title]" should be a valid selectorPasses
"span[class='example']" should be a valid selectorPasses
"a[hreflang=fr]" should be a valid selectorPasses
"a[hreflang|='en']" should be a valid selectorPasses
"[att^=val]" should be a valid selectorPasses
"[att$=val]" should be a valid selectorPasses
"[att*=val]" should be a valid selectorPasses
"object[type^=\"image/\"]" should be a valid selectorPasses
"a[href$=\".html\"]" should be a valid selectorPasses
"p[title*=\"hello\"]" should be a valid selectorPasses
"[*|att]" should be a valid selectorPasses
"[|att]" should be a valid selectorPasses

Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.