multipleappendwithxul.xhtml 856 B

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