blob: ea365dc431f8a9020a6d85833d6496b7b31d7285 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("Tests that Node.isEqualNode behaves correctly after an element that originally had attributes has had them removed.");
e1 = document.createElement('span');
e2 = document.createElement('span');
shouldBe("e1.isEqualNode(e2)", "true");
e2.setAttribute("foo", "bar");
shouldBe("e1.isEqualNode(e2)", "false");
e2.removeAttribute("foo");
shouldBe("e1.isEqualNode(e2)", "true");
e1 = document.createElement('span');
e2 = document.createElement('span');
shouldBe("e1.isEqualNode(e2)", "true");
e1.setAttribute("foo", "bar");
shouldBe("e1.isEqualNode(e2)", "false");
e1.removeAttribute("foo");
shouldBe("e1.isEqualNode(e2)", "true");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>