Is this possible? I've experimented a little bit and it seems like it
kind of works but it's a little problematic. For example, the binding
completes successfully but a lot of the expected properties are null
and this leads to a lot of errors. I am doing the binding after the
html page loads using addBinding inside of my extension's code.
var activeElement = window.content.document.activeElement;
window.content.document.addBinding(activeElement, 'chrome://atlasbar/
content/autocomplete.xml#autocomplete');
Should I somehow bind it before the page loads? Will it make a
difference? How can I accomplish this?
We (Flashblock) use CSS and the -moz-binding rule to bind XBL to
specific html elements. e.g.
object[type="application/x-shockwave-flash"]
{ -moz-binding: url("chrome://flashblock/content/flashblock.xml#flash")
!important; }
Phil
--
Philip Chee <phi...@aleytys.pc.my>, <phili...@gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
What properties are you expecting, and on what?
-Boris