| OLD | NEW |
| 1 Test that different ways of changing an element's id all work properly. | 1 Test that different ways of changing an element's id all work properly. |
| 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 | 6 |
| 7 1. Check id after parsing. | 7 1. Check id after parsing. |
| 8 PASS document.getElementById("a") is document.body | 8 PASS document.getElementById("a") is document.body |
| 9 PASS document.body.id is "a" | 9 PASS document.body.id is "a" |
| 10 PASS document.body.getAttributeNode("id").isId is true | |
| 11 PASS document.body.getAttributeNode("id").textContent is "a" | 10 PASS document.body.getAttributeNode("id").textContent is "a" |
| 12 | 11 |
| 13 2. Change Attr.value. | 12 2. Change Attr.value. |
| 14 PASS document.getElementById("a") is null | 13 PASS document.getElementById("a") is null |
| 15 PASS document.getElementById("b") is document.body | 14 PASS document.getElementById("b") is document.body |
| 16 PASS document.body.getAttributeNode("id").textContent is "b" | 15 PASS document.body.getAttributeNode("id").textContent is "b" |
| 17 | 16 |
| 18 3. Change HTMLElement.id. | 17 3. Change HTMLElement.id. |
| 19 PASS document.getElementById("b") is null | 18 PASS document.getElementById("b") is null |
| 20 PASS document.getElementById("c") is document.body | 19 PASS document.getElementById("c") is document.body |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 160 |
| 162 23. Add an Attr node over an existing one. | 161 23. Add an Attr node over an existing one. |
| 163 PASS document.getElementById("o") is null | 162 PASS document.getElementById("o") is null |
| 164 PASS document.getElementById("p") is document.body | 163 PASS document.getElementById("p") is document.body |
| 165 PASS document.body.id is "p" | 164 PASS document.body.id is "p" |
| 166 PASS document.body.getAttribute("id") is "p" | 165 PASS document.body.getAttribute("id") is "p" |
| 167 PASS successfullyParsed is true | 166 PASS successfullyParsed is true |
| 168 | 167 |
| 169 TEST COMPLETE | 168 TEST COMPLETE |
| 170 | 169 |
| OLD | NEW |