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