tor-browser

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

inserthtml-to-replace-root-list-element-in-designMode.html (763B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <script>
      6 document.addEventListener("DOMContentLoaded", () => {
      7  document.execCommand("selectAll");
      8  const editingHost = document.querySelector("thead[contenteditable]");
      9  editingHost.addEventListener("focus", () => {
     10    editingHost.addEventListener("focusout", () => {
     11      document.execCommand("italic");
     12      document.execCommand("insertText", false, "A");
     13      document.execCommand("insertUnorderedList");
     14    });
     15    document.designMode = "on";
     16    document.execCommand("selectAll");
     17    document.execCommand("insertHTML", false, "A");
     18  });
     19  editingHost.focus();
     20 });
     21 </script>
     22 </head>
     23 <body>
     24 <big>
     25 </big>
     26 <table>
     27 <thead contenteditable>
     28 </thead></table>
     29 <p>
     30 <object></object>
     31 </p>
     32 </body>
     33 </html>