|
1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> |
|
2 <head> |
|
3 |
|
4 <bindings xmlns="http://www.mozilla.org/xbl"> |
|
5 <binding id="foo"><content><span xmlns="http://www.w3.org/1999/xhtml"/></content></binding> |
|
6 <binding id="bar"><content></content></binding> |
|
7 </bindings> |
|
8 |
|
9 <script type="text/javascript"> |
|
10 // <![CDATA[ |
|
11 |
|
12 function boom() |
|
13 { |
|
14 var bo = document.getElementById("bo"); |
|
15 var anon = SpecialPowers.wrap(document).getAnonymousNodes(bo)[0]; |
|
16 |
|
17 bo.style.MozBinding = "url(#bar)"; |
|
18 |
|
19 var fr = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe"); |
|
20 fr.setAttribute("src", "javascript:void 0;"); |
|
21 anon.appendChild(fr); |
|
22 |
|
23 document.documentElement.removeAttribute("class"); |
|
24 } |
|
25 |
|
26 ]]> |
|
27 </script> |
|
28 </head> |
|
29 |
|
30 <body onload="setTimeout(boom, 100);"> |
|
31 |
|
32 <span style="-moz-binding: url(#foo)" id="bo"></span> |
|
33 |
|
34 </body> |
|
35 </html> |