464149-1.xul 975 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <window onload="boom();" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  4. <bindings xmlns="http://www.mozilla.org/xbl">
  5. <binding id="m"><content><xul:textbox type="text"><children/></xul:textbox></content></binding>
  6. </bindings>
  7. <script type="text/javascript">
  8. <![CDATA[
  9. function boom()
  10. {
  11. document.getElementById("b").style.MozBinding = 'url("data:text/xml,' + encodeURIComponent("<bindings xmlns='http://www.mozilla.org/xbl'><binding id='foo'><content><hbox xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'><children xmlns='http://www.mozilla.org/xbl'/></hbox></content></binding></bindings>\n") + '")';
  12. }
  13. ]]>
  14. </script>
  15. <listbox style="float: right;"><listitem/><listitem id="b"/><listitem><hbox style="-moz-binding: url(#m);"/></listitem></listbox>
  16. </window>