1 This tests that the querySelector and querySelectorAll fast path for IDs is not overzelous.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS document.querySelector('div#testid') is correctNode
7 PASS document.querySelector('#testid') is correctNode
8 PASS document.querySelector('ul#testid') is null
9 PASS document.querySelector('ul #testid') is null
10 PASS document.querySelector('#testid[attr]') is null
11 PASS document.querySelector('#testid:not(div)') is null
12 PASS document.querySelectorAll('div#testid').length is 1
13 PASS document.querySelectorAll('div#testid').item(0) is correctNode
14 PASS document.querySelectorAll('#testid').length is 1
15 PASS document.querySelectorAll('#testid').item(0) is correctNode
16 PASS document.querySelectorAll('ul#testid').length is 0
17 PASS document.querySelectorAll('ul #testid').length is 0
18 PASS document.querySelectorAll('#testid[attr]').length is 0
19 PASS document.querySelectorAll('#testid:not(div)').length is 0
20 PASS successfullyParsed is true