Backed out 2 changesets (bug 1943998) for causing wd failures @ phases.py CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1578916.html
blobf1d79be80467df4e0eb7112bf84f9d1b31885120
1 <script>
2 function onLoad() {
3 const data = document.querySelector("data");
4 const source = document.querySelector("source");
5 // For emulating the traditional behavior, collapse Selection to end of the
6 // <data> which is the deepest last child (and a container) of the <body>.
7 getSelection().collapse(data, data.childNodes.length);
8 source.appendChild(
9 document.body.firstChild // The invisible text node
11 getSelection().setBaseAndExtent(
12 data.appendChild(source),
14 source,
17 document.querySelector("audio")
18 .addEventListener("DOMCharacterDataModified", () => {
19 getSelection().removeAllRanges()
20 });
21 document.execCommand("delete");
23 </script>
24 <body onload="onLoad()">
25 <audio>
26 <li contenteditable>
27 <data>
28 <source>