OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <script> | 8 <script> |
9 | 9 |
10 description("Tests that Node.isEqualNode behaves correctly after an element that
originally had attributes has had them removed."); | 10 description("Tests that Node.isEqualNode behaves correctly after an element that
originally had attributes has had them removed."); |
(...skipping 10 matching lines...) Expand all Loading... |
21 e1 = document.createElement('span'); | 21 e1 = document.createElement('span'); |
22 e2 = document.createElement('span'); | 22 e2 = document.createElement('span'); |
23 | 23 |
24 shouldBe("e1.isEqualNode(e2)", "true"); | 24 shouldBe("e1.isEqualNode(e2)", "true"); |
25 e1.setAttribute("foo", "bar"); | 25 e1.setAttribute("foo", "bar"); |
26 shouldBe("e1.isEqualNode(e2)", "false"); | 26 shouldBe("e1.isEqualNode(e2)", "false"); |
27 e1.removeAttribute("foo"); | 27 e1.removeAttribute("foo"); |
28 shouldBe("e1.isEqualNode(e2)", "true"); | 28 shouldBe("e1.isEqualNode(e2)", "true"); |
29 | 29 |
30 </script> | 30 </script> |
31 <script src="../js/resources/js-test-post.js"></script> | |
32 </body> | 31 </body> |
33 </html> | 32 </html> |
OLD | NEW |