tor-browser

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

multipleappendwithinput.xhtml (759B)


      1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
      2 <head>
      3 <script type="text/javascript">
      4 
      5 function boom()
      6 {
      7  document.body.offsetHeight;
      8 
      9  var parent = document.getElementById("parent");
     10 
     11  var newelt = document.createElement("div");
     12  newelt.appendChild(document.createTextNode(3));
     13  parent.appendChild(newelt);
     14 
     15  newelt = document.createElement("div");
     16  newelt.appendChild(document.createTextNode(4));
     17  parent.appendChild(newelt);
     18 
     19  var input = document.createElement("input");
     20  input.setAttribute("type", "text");
     21  parent.appendChild(input);
     22 
     23  document.body.offsetHeight;
     24  document.documentElement.className = "";
     25 }
     26 
     27 </script>
     28 </head>
     29 
     30 <body onload="boom();">
     31 <div id="parent">
     32  <div>1</div>
     33  <div>2</div>
     34 </div>
     35 </body>
     36 </html>