<content chromedir="&locale.dir;"
closetabtext="&closeTab.label;">
<xul:image xbl:inherits="validate,src=image" class="tab-icon-
image"/>
<xul:label flex="1" xbl:inherits="value=label,crop,accesskey"
class="tab-text"/>
<xul:toolbarbutton anonid="close-button" tabindex="-1"
class="tab-close-button"/>
</content>
I have made some progress in this by adding an event listener to the
tabbrowser for the 'TabOpen' event and adding a <image> element to the
<tab>. At the time that I do this, the anonymous children already
exist, and they are all displayed.
When the tab is moved by the user, only my icon is shown - the normal
bindings disappear. This is consistent with the documentation:
bindings that do not have insertion points will not be applied to
sites that have explicit children. However, it's obviously not my
intent.
Is it possible to effectively "overlay" a binding?
Is it possible to add anonymous content to a binding? I can access
elements of the XPL via getAnonymousElementByAttribute() but if I try
to add a sibling, it is added as an explicit element. This is due to
parentNode always evaluating to the binding site.
>Is it possible to effectively "overlay" a binding?
>
>
You could extend the binding, but then again other extensions might be
trying to do the same thing...
--
Warning: May contain traces of nuts.