layout/reftests/dom/multipleappendwithxul.xhtml

branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
equal deleted inserted replaced
-1:000000000000 0:82ec5ee584ca
1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
2 <head>
3 <script type="text/javascript">
4
5 function boom()
6 {
7 document.body.offsetHeight;
8
9 var parent = document.getElementById("parent");
10
11 var newelt = document.createElement("div");
12 newelt.appendChild(document.createTextNode(3));
13 parent.appendChild(newelt);
14
15 newelt = document.createElement("div");
16 newelt.appendChild(document.createTextNode(4));
17 parent.appendChild(newelt);
18
19 var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
20 var hbox = document.createElementNS(XUL_NS, "hbox");
21 hbox.appendChild(document.createTextNode(5));
22 parent.appendChild(hbox);
23
24 document.body.offsetHeight;
25 document.documentElement.className = "";
26 }
27
28 </script>
29 </head>
30
31 <body onload="boom();">
32 <div id="parent">
33 <div>1</div>
34 <div>2</div>
35 </div>
36 </body>
37 </html>

mercurial