Frederick Kintanar wrote:
What do you mean by "element"?  Script and image loads fire onload
events; stylesheet loads will too, at some point... (once I unbreak XBL,
hopefully).


I am intrigued by this comment. This is going off-topic, but: In what way is XBL broken

The basic issue is one of when bindings are attached and how.... Is binding attachment synchronous? Asynchronous? Do nodes not in the document get bindings attached?


The answers are:

1)  Asynchronous.  There should be bindingAttached events that fire when
    a binding is attached.  Those are not implemented yet.  In reality,
    people assume that binding attachment is synchronous.
2)  Nodes not in the document don't get bindings attached unless they
    are cloned off a XUL node that _is_ in the document.  This is needed
    to make various (ab)users of XUL/XBL work, and because there is no
    way to tell when bindings are really attached (see answer 1).

If I ever implement stylesheet load events that will make all sheet loads truly asynchronous (since synchronously firing load events is a nice way to cause stack overflow and since load events prevent the document's onload from firing). In particular, XBL binding attachment will become truly asynchronous. In which case, see the "people assume" part of answer 1 above.

The "right" fix will probably end up being that we explicitly move to sync loading of sheets for XBL if it's chrome or something stupid like that... I can't change the habits of all the XUL/XBL programmers out there, and dealing with truly async binding attachment would involve a large change in those habits. :(

what efforts are being made to fix it?

On the programme above? None, at the moment.... I've had no time (or desire, really) to work on this.


Is this related to supporting XML Events and XForms via XBL?

Not really, except insofar as async binding attachment affects things there...


Is there an easy way for somebody to help?

Hmm... not sure, actually. Clearly explaining to me how content authors currently expect XBL to behave would be useful, probably.


-Boris
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to