Bug 1883912: Enable Intl.ListFormat test for "unit" style. r=spidermonkey-reviewers...
[gecko.git] / editor / libeditor / crashtests / 1423776.html
blob4790a79f3196950cf24121c3c86b40f5bf6fa78b
1 <script>
2 function onLoad() {
3 const svg = document.querySelector("svg");
4 const feConvolveMatrix = document.querySelectorAll("feConvolveMatrix");
5 // For emulating the traditional behavior, collapse Selection to end of the
6 // text node in the last <svg> which is the deepest last child of the <body>
7 // (i.e., at end of the text node after the last <feConvolveMatrix>).
8 getSelection().collapse(svg.lastChild, svg.lastChild.length);
9 feConvolveMatrix[0].addEventListener("DOMNodeInserted", () => {
10 svg.appendChild(feConvolveMatrix[1]);
11 document.execCommand("insertOrderedList", false);
12 });
13 feConvolveMatrix[0].insertAdjacentHTML(
14 "afterBegin",
15 document.querySelector("table").outerHTML
18 </script>
19 <body onload="onLoad()">
20 <table></table>
21 <b contenteditable>
22 <svg>
23 <feConvolveMatrix/>
24 <feConvolveMatrix/>
25 </svg></body>