Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

function onLoad() {
const svg = document.querySelector("svg");
const feConvolveMatrix = document.querySelectorAll("feConvolveMatrix");
// For emulating the traditional behavior, collapse Selection to end of the
// text node in the last <svg> which is the deepest last child of the <body>
// (i.e., at end of the text node after the last <feConvolveMatrix>).
getSelection().collapse(svg.lastChild, svg.lastChild.length);
feConvolveMatrix[0].addEventListener("DOMNodeInserted", () => {
document.execCommand("insertOrderedList", false);
<body onload="onLoad()">
<b contenteditable>