multipleinsertionpoints-appendsingle-2.xhtml 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
  2. <head>
  3. <bindings xmlns="http://www.mozilla.org/xbl"
  4. xmlns:xhtml="http://www.w3.org/1999/xhtml">
  5. <binding id="a">
  6. <content>
  7. <xhtml:div>
  8. <children includes="span"/>
  9. </xhtml:div>
  10. <xhtml:div>
  11. <children/>
  12. </xhtml:div>
  13. </content>
  14. </binding>
  15. </bindings>
  16. <script>
  17. function boom()
  18. {
  19. document.body.offsetHeight;
  20. var parent = document.getElementById("parent");
  21. var newelt = document.createElement("span");
  22. newelt.appendChild(document.createTextNode(2));
  23. parent.appendChild(newelt);
  24. document.body.offsetHeight;
  25. document.documentElement.className = "";
  26. }
  27. </script>
  28. </head>
  29. <body onload="boom();">
  30. <div id="parent" style="-moz-binding: url(#a);">
  31. <div>3</div><span>1</span><div>4</div><div>5</div>
  32. </div>
  33. </body>
  34. </html>