layout/reftests/dom/appendmultiple.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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

mercurial