3 const label
= document
.querySelector("label");
4 // For emulating the traditional behavior, collapse Selection to end of the
5 // <label> which is the last child of the <body>, i.e., at the comment node.
6 getSelection().collapse(label
, label
.childNodes
.length
);
7 label
.addEventListener("DOMNodeRemoved", () => {
8 document
.querySelector("a").innerText
= "";
10 document
.execCommand("indent");
13 <body onload=
"onLoad()">