| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body id="a"> | 6 <body id="a"> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 description("Test that different ways of changing an element's id all work prope
rly."); | 9 description("Test that different ways of changing an element's id all work prope
rly."); |
| 10 | 10 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 206 |
| 207 debug("\n23. Add an Attr node over an existing one."); | 207 debug("\n23. Add an Attr node over an existing one."); |
| 208 var attrNode = document.createAttribute("id"); | 208 var attrNode = document.createAttribute("id"); |
| 209 attrNode.value = "p"; | 209 attrNode.value = "p"; |
| 210 document.body.setAttributeNode(attrNode); | 210 document.body.setAttributeNode(attrNode); |
| 211 shouldBe('document.getElementById("o")', 'null'); | 211 shouldBe('document.getElementById("o")', 'null'); |
| 212 shouldBe('document.getElementById("p")', 'document.body'); | 212 shouldBe('document.getElementById("p")', 'document.body'); |
| 213 shouldBe('document.body.id', '"p"'); | 213 shouldBe('document.body.id', '"p"'); |
| 214 shouldBe('document.body.getAttribute("id")', '"p"'); | 214 shouldBe('document.body.getAttribute("id")', '"p"'); |
| 215 </script> | 215 </script> |
| 216 <script src="../../js/resources/js-test-post.js"></script> | |
| 217 </body> | 216 </body> |
| 218 </html> | 217 </html> |
| OLD | NEW |