multipleinsertionpoints-appendmultiple.xhtml 969 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. newelt = document.createElement("div");
  25. newelt.appendChild(document.createTextNode(5));
  26. parent.appendChild(newelt);
  27. document.body.offsetHeight;
  28. document.documentElement.className = "";
  29. }
  30. </script>
  31. </head>
  32. <body onload="boom();">
  33. <div id="parent" style="-moz-binding: url(#a);">
  34. <div>3</div><span>1</span><div>4</div>
  35. </div>
  36. </body>
  37. </html>