layout/reftests/dom/inserttoparentandchild-1.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.

michael@0 1 <html class="reftest-wait">
michael@0 2 <head>
michael@0 3
michael@0 4 <script>
michael@0 5 function boom()
michael@0 6 {
michael@0 7 document.body.offsetHeight;
michael@0 8
michael@0 9 var fivediv = document.getElementById("five");
michael@0 10 var parent = fivediv.parentNode;
michael@0 11
michael@0 12 for (var i = 3; i <= 4; i++) {
michael@0 13 var newdiv = document.createElement("div");
michael@0 14 newdiv.appendChild(document.createTextNode(i));
michael@0 15 parent.insertBefore(newdiv, fivediv);
michael@0 16 }
michael@0 17
michael@0 18 var fivedeediv = document.getElementById("fivedee");
michael@0 19 parent = fivedeediv.parentNode;
michael@0 20
michael@0 21 var newdiv = document.createElement("div");
michael@0 22 newdiv.appendChild(document.createTextNode("5b"));
michael@0 23 parent.insertBefore(newdiv, fivedeediv);
michael@0 24
michael@0 25 newdiv = document.createElement("div");
michael@0 26 newdiv.appendChild(document.createTextNode("5c"));
michael@0 27 parent.insertBefore(newdiv, fivedeediv);
michael@0 28
michael@0 29 document.body.offsetHeight;
michael@0 30 document.documentElement.className = "";
michael@0 31 }
michael@0 32 </script>
michael@0 33
michael@0 34 </head>
michael@0 35 <body onload="boom();">
michael@0 36 <div>1</div>
michael@0 37 <div>2</div>
michael@0 38 <div id="five">
michael@0 39 <div>5a</div>
michael@0 40 <div id="fivedee">5d</div>
michael@0 41 </div>
michael@0 42 <div>6</div>
michael@0 43 <div>7</div>
michael@0 44 <div>8</div>
michael@0 45 <div>9</div>
michael@0 46 </body>
michael@0 47 </html>

mercurial