5 <script src=
"../../resources/js-test.js"></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");