ladybird/Tests/LibWeb/Text/input/MutationObserver/removing-a-node.html
2025-03-20 11:50:49 +01:00

14 lines
413 B
HTML

<!DOCTYPE html>
<body>
<script src="../include.js"></script>
<script>
test(() => {
let observer = new MutationObserver(function() {});
observer.observe(document.body, { attributes: true, childList: true, subtree: true });
let div = document.createElement("div");
document.body.appendChild(div);
div.remove();
println("PASS! (Didn't crash)");
});
</script>