tor-browser

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

forwarddelete-at-empty-text-node-in-body.html (317B)


      1 <body contenteditable=true>x   y
      2 <script>
      3 document.body.firstChild.splitText(2)  // "x " and "  y"
      4                        .splitText(1)  // "x", " " and "  y"
      5                        .splitText(1); // "x", "", " " and "  y"
      6 getSelection().collapse(document.body, 1);
      7 document.execCommand("forwardDelete");
      8 </script>