layout/reftests/dom/insertsingle.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <html class="reftest-wait">
     2 <head>
     4 <script>
     5 function boom()
     6 {
     7   document.body.offsetHeight;
     9   var fourdiv = document.getElementById("four");
    10   var parent = fourdiv.parentNode;
    12   var newdiv = document.createElement("div");
    13   newdiv.appendChild(document.createTextNode("3"));
    14   parent.insertBefore(newdiv, fourdiv);
    16   document.body.offsetHeight;
    17   document.documentElement.className = "";
    18 }
    19 </script>
    21 </head>
    22 <body onload="boom();">
    23 <div>1</div>
    24 <div>2</div>
    25 <div id="four">4</div>
    26 <div>5</div>
    27 </body>
    28 </html>

mercurial