tor-browser

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

insertparagraph-in-listitem-in-svg-followed-by-collapsible-spaces.html (737B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <meta name="timeout" content="long">
      6 <script>
      7 addEventListener("load", () => {
      8  document.querySelector("svg").insertAdjacentText("afterend", `\n${" ".repeat(336860180)}`);
      9 
     10  document.designMode = "on";
     11  getSelection().selectAllChildren(document.querySelector("input"));
     12 
     13  document.querySelector("li").appendChild(document.querySelector("p"));
     14  document.execCommand("outdent");
     15  document.execCommand("insertOrderedList");
     16  document.execCommand("insertParagraph");
     17 });
     18 </script>
     19 </head>
     20 <body>
     21 <svg>
     22  <foreignObject>
     23    <li></li>
     24 /&gt;
     25  </foreignObject></svg><p>
     26  <input>
     27 </p>
     28 <title>This test takes long time due to the long white-spaces are required</title>
     29 </body></html>