tor-browser

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

selectall-and-move-editable-br-onselectstart.html (639B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <script>
      6 "use strict";
      7 
      8 addEventListener("DOMContentLoaded", () => {
      9  document.addEventListener("selectstart", () => {
     10    window.find("A");
     11    document.body.prepend(document.getElementById("br"));
     12  });
     13  document.querySelector("picture").addEventListener("focusin", () => {
     14    document.body.prepend(document.getElementById("br"));
     15  });
     16  document.execCommand("selectAll");
     17 }, {once: true});
     18 </script>
     19 </head>
     20 <body>
     21  A
     22  <picture>
     23    <keygen tabindex="-1" autofocus>
     24    <q contenteditable>
     25      A
     26      <br id="br">
     27      <table></table>
     28    </q>
     29  </picture>
     30 </body>
     31 </html>