Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / isEqualNode-after-removeAttribute.html
blobcb0e4dfc3446f8f6c1dd0ad4ce41eafe57136949
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
10 description("Tests that Node.isEqualNode behaves correctly after an element that originally had attributes has had them removed.");
12 e1 = document.createElement('span');
13 e2 = document.createElement('span');
15 shouldBe("e1.isEqualNode(e2)", "true");
16 e2.setAttribute("foo", "bar");
17 shouldBe("e1.isEqualNode(e2)", "false");
18 e2.removeAttribute("foo");
19 shouldBe("e1.isEqualNode(e2)", "true");
21 e1 = document.createElement('span');
22 e2 = document.createElement('span');
24 shouldBe("e1.isEqualNode(e2)", "true");
25 e1.setAttribute("foo", "bar");
26 shouldBe("e1.isEqualNode(e2)", "false");
27 e1.removeAttribute("foo");
28 shouldBe("e1.isEqualNode(e2)", "true");
30 </script>
31 </body>
32 </html>