|
1 <?xml version="1.0"?> |
|
2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
|
3 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
4 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
5 onload="boom();"> |
|
6 |
|
7 <bindings xmlns="http://www.mozilla.org/xbl"> |
|
8 <binding id="lit"> |
|
9 <content> |
|
10 <children> |
|
11 <xul:hbox/> |
|
12 </children> |
|
13 </content> |
|
14 </binding> |
|
15 </bindings> |
|
16 |
|
17 <script type="text/javascript"> |
|
18 |
|
19 function boom() |
|
20 { |
|
21 var x = document.getElementById("x"); |
|
22 var anon = document.getAnonymousNodes(x)[0]; |
|
23 document.documentElement.removeChild(x); |
|
24 document.documentElement.appendChild(x); |
|
25 var hbox = document.createElement('hbox'); |
|
26 anon.appendChild(hbox); |
|
27 } |
|
28 |
|
29 </script> |
|
30 |
|
31 <hbox id="x" style="-moz-binding: url(#lit)" /> |
|
32 |
|
33 </window> |