layout/reftests/dom/insertmultiple.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     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