Backed out 2 changesets (bug 1943998) for causing wd failures @ phases.py CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1408170.html
blob66119e9da31e66efb06d93cc89b8001fd1ca7f18
1 <script>
2 function onLoad() {
3 try {
4 document.execCommand("insertUnorderedList");
5 } catch(e) {}
6 try {
7 document.execCommand("delete");
8 } catch(e) {}
11 function onToggle1() {
12 try {
13 getSelection().collapse(
14 document.querySelector("font"),
17 } catch(e) {}
20 function onToggle2() {
21 // For emulating the traditional behavior, collapse Selection to end of the
22 // text node in the <summary> which is the last child of the <body>.
23 const summary = document.querySelector("summary");
24 getSelection().collapse(summary.firstChild, summary.firstChild.length);
25 try {
26 document.querySelector("label").appendChild(
27 document.querySelector("font")
29 } catch(e) {}
31 </script>
32 <body onload="onLoad()">
33 <label contenteditable>
34 <details ontoggle="onToggle2()" open>
35 </details>
36 </label>
37 <details ontoggle="onToggle1()" open>
38 <font dir="rtl">
39 <summary>
40 </details></font></summary></body>