LibWeb: Implement Element.removeAttributeNode()

This commit is contained in:
Andreas Kling 2024-04-14 15:49:48 +02:00
commit 20bdda7f02
Notes: sideshowbarker 2024-07-16 22:17:03 +09:00
7 changed files with 43 additions and 1 deletions

View file

@ -0,0 +1,16 @@
<script src="../include.js"></script>
<script>
test(() => {
let e = document.createElement("div");
e.setAttribute("foo", "bar");
let a = e.getAttributeNode("foo");
let removed = e.removeAttributeNode(a);
println(a === removed);
try {
e.removeAttributeNode(a);
println("FAIL");
} catch (e) {
println("OK: " + e);
}
});
</script>