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);
13 feConvolveMatrix
[0].insertAdjacentHTML(
15 document
.querySelector("table").outerHTML
19 <body onload=
"onLoad()">