layout/reftests/dom/insertmultiple.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

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

mercurial