1 This tests that querySelector, querySelectorAll and matchesSelector (webkitMatchesSelector) work with elements that are not in a document yet.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS root.querySelector('div') is correctNode
7 PASS root.querySelector('#testId') is correctNode
8 PASS root.querySelectorAll('div').length is 1
9 PASS root.querySelectorAll('div').item(0) is correctNode
10 PASS root.querySelectorAll('#testId').length is 1
11 PASS root.querySelectorAll('#testId').item(0) is correctNode
12 PASS noChild.querySelector('div') is null
13 PASS noChild.querySelectorAll('div').length is 0
14 PASS correctNode.webkitMatchesSelector('div') is true
15 PASS correctNode.webkitMatchesSelector('#testId') is true
16 PASS successfullyParsed is true