layout/reftests/dom/insertparentandchild.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 sixdiv = document.getElementById("six");
    10   var parent = sixdiv.parentNode;
    12   var newdiv = document.createElement("div");
    13   var childdiv = document.createElement("div");
    14   childdiv.appendChild(document.createTextNode("5c"));
    15   newdiv.appendChild(childdiv);
    16   childdiv = document.createElement("div");
    17   childdiv.appendChild(document.createTextNode("5d"));
    18   newdiv.appendChild(childdiv);
    19   parent.insertBefore(newdiv, sixdiv);
    21   childdiv = document.createElement("div");
    22   childdiv.appendChild(document.createTextNode("5b"));
    23   newdiv.insertBefore(childdiv, newdiv.firstChild);
    24   childdiv = document.createElement("div");
    25   childdiv.appendChild(document.createTextNode("5a"));
    26   newdiv.insertBefore(childdiv, newdiv.firstChild);
    28   document.body.offsetHeight;
    29   document.documentElement.className = "";
    30 }
    31 </script>
    33 </head>
    34 <body onload="boom();">
    35 <div>1</div>
    36 <div>2</div>
    37 <div>3</div>
    38 <div>4</div>
    39 <div id="six">6</div>
    40 <div>7</div>
    41 <div>8</div>
    42 <div>9</div>
    43 </body>
    44 </html>

mercurial