multipleappendwithinput.xhtml 759 B

123456789101112131415161718192021222324252627282930313233343536
  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 input = document.createElement("input");
  15. input.setAttribute("type", "text");
  16. parent.appendChild(input);
  17. document.body.offsetHeight;
  18. document.documentElement.className = "";
  19. }
  20. </script>
  21. </head>
  22. <body onload="boom();">
  23. <div id="parent">
  24. <div>1</div>
  25. <div>2</div>
  26. </div>
  27. </body>
  28. </html>