| OLD | NEW |
| 1 Tests to ensure ShadowRoot.getElementById works after complex DOM manipulation. | 1 Tests to ensure ShadowRoot.getElementById works after complex DOM manipulation. |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS document.getElementById("A") is A | 6 PASS document.getElementById("A") is A |
| 7 PASS shadowRootA.getElementById() threw exception TypeError: Failed to execute '
getElementById' on 'DocumentFragment': 1 argument required, but only 0 present.. |
| 7 PASS shadowRootA.getElementById("B") is B | 8 PASS shadowRootA.getElementById("B") is B |
| 8 PASS shadowRootB.getElementById("C") is C | 9 PASS shadowRootB.getElementById("C") is C |
| 9 PASS shadowRootC.getElementById("D") is D | 10 PASS shadowRootC.getElementById("D") is D |
| 10 | 11 |
| 11 Remove C from shadowRootB | 12 Remove C from shadowRootB |
| 12 PASS document.getElementById("A") is A | 13 PASS document.getElementById("A") is A |
| 13 PASS shadowRootA.getElementById("B") is B | 14 PASS shadowRootA.getElementById("B") is B |
| 14 PASS shadowRootB.getElementById("C") is null | 15 PASS shadowRootB.getElementById("C") is null |
| 15 PASS shadowRootC.getElementById("D") is D | 16 PASS shadowRootC.getElementById("D") is D |
| 16 | 17 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 | 29 |
| 29 Remove D from shadowRootC | 30 Remove D from shadowRootC |
| 30 PASS document.getElementById("A") is null | 31 PASS document.getElementById("A") is null |
| 31 PASS shadowRootA.getElementById("B") is B | 32 PASS shadowRootA.getElementById("B") is B |
| 32 PASS shadowRootB.getElementById("C") is null | 33 PASS shadowRootB.getElementById("C") is null |
| 33 PASS shadowRootC.getElementById("D") is null | 34 PASS shadowRootC.getElementById("D") is null |
| 34 PASS successfullyParsed is true | 35 PASS successfullyParsed is true |
| 35 | 36 |
| 36 TEST COMPLETE | 37 TEST COMPLETE |
| 37 | 38 |
| OLD | NEW |