1 This tests that the querySelector, querySelectorAll and matchesSelector (webkitMatchesSelector) correctly stringify null and undefined to "null" and "undefined".
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS document.querySelector(null) is nullNode
7 PASS document.querySelector(undefined) is undefinedNode
8 PASS document.querySelectorAll(null).length is 1
9 PASS document.querySelectorAll(null).item(0) is nullNode
10 PASS document.querySelectorAll(undefined).length is 1
11 PASS document.querySelectorAll(undefined).item(0) is undefinedNode
12 PASS nullNode.webkitMatchesSelector(null) is true
13 PASS undefinedNode.webkitMatchesSelector(undefined) is true
14 PASS successfullyParsed is true