tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

insertHTML-before-comment-at-end-of-editing-host.html (431B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <script>
      6 "use strict";
      7 
      8 addEventListener("DOMContentLoaded", () => {
      9  document.querySelector("dialog").showModal();
     10  document.getSelection().extend(document.querySelector("fieldset"), 0);
     11  document.execCommand("insertHTML", false, "A");
     12 }, {once: true});
     13 </script>
     14 </head>
     15 <body>
     16 <dialog contenteditable="true">
     17 <fieldset id="b">
     18 <!-- -->
     19 </fieldset></dialog></body>
     20 </html>