blob: b6b2cad67d87df5af1ced29a8654c9af024b3c16 [file] [log] [blame]
This tests that querySelector and querySelectorAll don't search outside their root node.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS root.querySelector('div') is correctNode
PASS root.querySelectorAll('div').length is 1
PASS root.querySelectorAll('div').item(0) is correctNode
PASS noChild.querySelector('div') is null
PASS noChild.querySelectorAll('div').length is 0
PASS successfullyParsed is true
TEST COMPLETE