mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
17 lines
459 B
HTML
17 lines
459 B
HTML
|
<!DOCTYPE html>
|
||
|
<script>
|
||
|
var root = document.documentElement;
|
||
|
while(root.firstChild) { root.removeChild(root.firstChild); }
|
||
|
var div = document.createElement("div");
|
||
|
root.appendChild(div);
|
||
|
|
||
|
document.addEventListener("DOMNodeRemoved", function() {
|
||
|
root.appendChild(document.createTextNode("some mutation"));
|
||
|
}, false);
|
||
|
|
||
|
var range = document.createRange();
|
||
|
range.setStart(root, 0);
|
||
|
range.setEnd(root, root.childNodes.length);
|
||
|
range.deleteContents();
|
||
|
</script>
|