layout/reftests/dom/insertparentandchild.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     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