mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
With this change children are no longer skipped in tree traversal when start node of range equals to end node of range. Fixes https://github.com/SerenityOS/serenity/issues/24036
18 lines
388 B
HTML
18 lines
388 B
HTML
<!DOCTYPE html>
|
|
before
|
|
<div id="for-deletion">
|
|
<div>should</div>
|
|
<div>be</div>
|
|
<div>gone</div>
|
|
</div>
|
|
after
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const element = document.getElementById("for-deletion");
|
|
const range = document.createRange();
|
|
range.selectNodeContents(element);
|
|
range.deleteContents();
|
|
});
|
|
</script>
|