summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/771639.html
blob: c6124cac51a9030cf185fd4d68c51b5c2cfaef03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<script>
var root = document.documentElement;
while(root.firstChild) { root.firstChild.remove(); }
var div = document.createElement("div");
root.appendChild(div);

document.addEventListener("DOMNodeRemoved", function() {
  root.appendChild(document.createTextNode("some mutation"));
});

var range = document.createRange();
range.setStart(root, 0);
range.setEnd(root, root.childNodes.length);
range.deleteContents();
</script>