I would not recommend using XBL to implement properties on the elements.
reason is the one bz brought up, that in some circumstances the
binding doesn't get added.
Another problem is if someone adds a binding of their own to style the
control you'll loose all properties defined in your binding, which is
not expected behaviour.
You can probably use XBL to style the control though.
/ Jonas
Alex Vincent wrote:
Gentlemen, I intend to do a large part of the work to implement Web
Forms 2.0 for Mozilla, but I need a fundamental question answered.
The general consensus I received is that new widgets whenever possible
should be implemented in XBL. However, Boris Zbarsky has pointed out
this is infeasible because XBL bindings currently cannot apply 100% of
the time (he cited as an example how the display:none style property
breaks bindings).
I am perfectly willing to write new widgets in C++ or in XBL, but I need
a solid decision from the content module owner and peers on this. Should
I write these controls in C++, XBL or some other format?
If the route should be XBL-based controls, how can we unconditionally
guarantee the bindings will apply?
I have also considered XTF-based implementations, but because Web Forms
2 is theoretically in the same namespace as XHTML (and lives in harmony
with HTML), this option appears closed to me.
Alex Vincent
dev-tech-dom mailing list
dev-tech-dom (AT) lists (DOT) mozilla.org