delete-after-empty-script-element.html (378B)
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 </head> 6 <body> 7 A 8 <script> 9 addEventListener("load", () => { 10 document.documentElement.contentEditable = true; 11 getSelection().collapse(document.body.lastChild, document.body.lastChild.length); 12 document.execCommand("delete"); 13 }); 14 </script> 15 <li> 16 <form readonly contenteditable> 17 </form> 18 <script> 19 </script></li></body></html>