19 lines
713 B
Plaintext
19 lines
713 B
Plaintext
Test queries whose leftmost selector matches the root node.
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
PASS document.body.querySelectorAll('#target > div').length is 6
|
|
PASS document.body.querySelectorAll('#target').length is 0
|
|
PASS document.body.querySelectorAll('.target > div').length is 6
|
|
PASS document.body.querySelectorAll('.target').length is 0
|
|
PASS document.body.querySelectorAll('body > div').length is 6
|
|
PASS document.body.querySelectorAll('body').length is 0
|
|
PASS document.body.querySelector('#target') is null
|
|
PASS document.body.querySelector('.target') is null
|
|
PASS document.body.querySelector('body') is null
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|
|
|