blob: f9f5b3bdd6211feede8769b618a64cb55636d7ff [file] [log] [blame]
This is a testharness.js-based test.
PASS Element.closest with context node 'test12' and selector 'select'
PASS Element.closest with context node 'test13' and selector 'fieldset'
PASS Element.closest with context node 'test13' and selector 'div'
PASS Element.closest with context node 'test3' and selector 'body'
PASS Element.closest with context node 'test4' and selector '[default]'
PASS Element.closest with context node 'test4' and selector '[selected]'
PASS Element.closest with context node 'test11' and selector '[selected]'
PASS Element.closest with context node 'test12' and selector '[name="form-a"]'
PASS Element.closest with context node 'test13' and selector 'form[name="form-a"]'
PASS Element.closest with context node 'test9' and selector 'input[required]'
PASS Element.closest with context node 'test9' and selector 'select[required]'
PASS Element.closest with context node 'test13' and selector 'div:not(.div1)'
PASS Element.closest with context node 'test6' and selector 'div.div3'
PASS Element.closest with context node 'test1' and selector 'div#test7'
PASS Element.closest with context node 'test12' and selector '.div3 > .div2'
PASS Element.closest with context node 'test12' and selector '.div3 > .div1'
PASS Element.closest with context node 'test9' and selector 'form > input[required]'
PASS Element.closest with context node 'test12' and selector 'fieldset > select[required]'
PASS Element.closest with context node 'test6' and selector 'input + fieldset'
PASS Element.closest with context node 'test3' and selector 'form + form'
PASS Element.closest with context node 'test5' and selector 'form + form'
PASS Element.closest with context node 'test10' and selector ':empty'
PASS Element.closest with context node 'test11' and selector ':last-child'
PASS Element.closest with context node 'test12' and selector ':first-child'
PASS Element.closest with context node 'test11' and selector ':invalid'
PASS Element.closest with context node 'test4' and selector ':scope'
PASS Element.closest with context node 'test4' and selector 'select > :scope'
PASS Element.closest with context node 'test4' and selector 'div > :scope'
FAIL Element.closest with context node 'test4' and selector ':has(> :scope)' Failed to execute 'closest' on 'Element': ':has(> :scope)' is not a valid selector.
Harness: the test ran to completion.