| OLD | NEW |
| 1 This is a testharness.js-based test. | 1 This is a testharness.js-based test. |
| 2 PASS Element.closest with context node 'test12' and selector 'select' | 2 PASS Element.closest with context node 'test12' and selector 'select' |
| 3 PASS Element.closest with context node 'test13' and selector 'fieldset' | 3 PASS Element.closest with context node 'test13' and selector 'fieldset' |
| 4 PASS Element.closest with context node 'test13' and selector 'div' | 4 PASS Element.closest with context node 'test13' and selector 'div' |
| 5 PASS Element.closest with context node 'test3' and selector 'body' | 5 PASS Element.closest with context node 'test3' and selector 'body' |
| 6 PASS Element.closest with context node 'test4' and selector '[default]' | 6 PASS Element.closest with context node 'test4' and selector '[default]' |
| 7 PASS Element.closest with context node 'test4' and selector '[selected]' | 7 PASS Element.closest with context node 'test4' and selector '[selected]' |
| 8 PASS Element.closest with context node 'test11' and selector '[selected]' | 8 PASS Element.closest with context node 'test11' and selector '[selected]' |
| 9 PASS Element.closest with context node 'test12' and selector '[name="form-a"]' | 9 PASS Element.closest with context node 'test12' and selector '[name="form-a"]' |
| 10 PASS Element.closest with context node 'test13' and selector 'form[name="form-a"
]' | 10 PASS Element.closest with context node 'test13' and selector 'form[name="form-a"
]' |
| 11 PASS Element.closest with context node 'test9' and selector 'input[required]' | 11 PASS Element.closest with context node 'test9' and selector 'input[required]' |
| 12 PASS Element.closest with context node 'test9' and selector 'select[required]' | 12 PASS Element.closest with context node 'test9' and selector 'select[required]' |
| 13 PASS Element.closest with context node 'test13' and selector 'div:not(.div1)' | 13 PASS Element.closest with context node 'test13' and selector 'div:not(.div1)' |
| 14 PASS Element.closest with context node 'test6' and selector 'div.div3' | 14 PASS Element.closest with context node 'test6' and selector 'div.div3' |
| 15 PASS Element.closest with context node 'test1' and selector 'div#test7' | 15 PASS Element.closest with context node 'test1' and selector 'div#test7' |
| 16 PASS Element.closest with context node 'test12' and selector '.div3 > .div2' | 16 PASS Element.closest with context node 'test12' and selector '.div3 > .div2' |
| 17 PASS Element.closest with context node 'test12' and selector '.div3 > .div1' | 17 PASS Element.closest with context node 'test12' and selector '.div3 > .div1' |
| 18 PASS Element.closest with context node 'test9' and selector 'form > input[requir
ed]' | 18 PASS Element.closest with context node 'test9' and selector 'form > input[requir
ed]' |
| 19 PASS Element.closest with context node 'test12' and selector 'fieldset > select[
required]' | 19 PASS Element.closest with context node 'test12' and selector 'fieldset > select[
required]' |
| 20 PASS Element.closest with context node 'test6' and selector 'input + fieldset' | 20 PASS Element.closest with context node 'test6' and selector 'input + fieldset' |
| 21 PASS Element.closest with context node 'test3' and selector 'form + form' | 21 PASS Element.closest with context node 'test3' and selector 'form + form' |
| 22 PASS Element.closest with context node 'test5' and selector 'form + form' | 22 PASS Element.closest with context node 'test5' and selector 'form + form' |
| 23 PASS Element.closest with context node 'test10' and selector ':empty' | 23 PASS Element.closest with context node 'test10' and selector ':empty' |
| 24 PASS Element.closest with context node 'test11' and selector ':last-child' | 24 PASS Element.closest with context node 'test11' and selector ':last-child' |
| 25 PASS Element.closest with context node 'test12' and selector ':first-child' | 25 PASS Element.closest with context node 'test12' and selector ':first-child' |
| 26 PASS Element.closest with context node 'test11' and selector ':invalid' | 26 PASS Element.closest with context node 'test11' and selector ':invalid' |
| 27 PASS Element.closest with context node 'test4' and selector ':scope' | 27 FAIL Element.closest with context node 'test4' and selector ':scope' should thro
w assert_throws: function "function () { |
| 28 PASS Element.closest with context node 'test4' and selector 'select > :scope' | 28 el.closest(aSelector); |
| 29 PASS Element.closest with context node 'test4' and selector 'div > :scope' | 29 }" did not throw |
| 30 FAIL Element.closest with context node 'test4' and selector ':has(> :scope)' Fai
led to execute 'closest' on 'Element': ':has(> :scope)' is not a valid selector. | 30 FAIL Element.closest with context node 'test4' and selector 'select > :scope' sh
ould throw assert_throws: function "function () { |
| 31 el.closest(aSelector); |
| 32 }" did not throw |
| 33 FAIL Element.closest with context node 'test4' and selector 'div > :scope' shoul
d throw assert_throws: function "function () { |
| 34 el.closest(aSelector); |
| 35 }" did not throw |
| 36 PASS Element.closest with context node 'test4' and selector ':has(> :scope)' sho
uld throw |
| 31 Harness: the test ran to completion. | 37 Harness: the test ran to completion. |
| 32 | 38 |
| OLD | NEW |