|
Re: sXBL issue -- bindings getting notified when the bound element is ins: msg#00029web.svg
Hi Boris and Cameron, I have read through this thread and I am still confused about two things: (1) Boris seems to be saying that in XBL2 a bound element will have different methods depending on whether it has been inserted into the document or not. Really? First of all, I should point out that XBL2 doesn't exist quite yet. XBL2 is just a vague notion that we will generally add most of the things from Mozilla XBL to sXBL, and maybe a couple of other useful features not found in Mozilla XBL, but there has been no real discussion yet even about a requirements list. In particular, Ian's drafts represent totally unreviewed proposals. (However, I hope we can change all of this fairly soon and start making progress on XBL2, probably starting off with a discussion of XBL2 requirements.) I agree that it is likely that somehow or other XBL2 will allow bindings to define methods and DOM attributes for bound elements. Under that assumption, thinking ahead to XBL2, doesn't it make sense that these APIs would be available at the time the xbl:bound event is raised, no matter whether the bound element is inserted into the document or not? (2) I still don't understand why the binding can't just register a DOMNodeInsertedIntoDocument listener on the bound element. I apologize for my inability to follow the discussion fully. Is it because DOMNodeInsertedIntoDocument results in common scenarios where the node might not be in the document anymore, which causes a large percentage of developers to have to put in a lot of checks into their scripting logic? Boris described a case where a binding is added at the same time that script is removing a node. Is this a common case? I am wondering if we can at least warn developers about processing model complexities and suggest some techniques to avoid these complexities. (I don't believe there is an active proposal for extending sXBL. Is there one?) Jon At 10:41 PM 3/17/2005, Boris Zbarsky wrote: Cameron McCormack wrote: |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: sXBL issue -- bindings getting notified when the bound element is inserted into a document: 00029, Boris Zbarsky |
|---|---|
| Next by Date: | Re: sXBL issue -- bindings getting notified when the bound element is inserted into a document: 00029, Boris Zbarsky |
| Previous by Thread: | Re: sXBL issue -- bindings getting notified when the bound element is inserted into a documenti: 00029, Boris Zbarsky |
| Next by Thread: | Re: sXBL issue -- bindings getting notified when the bound element is inserted into a document: 00029, Boris Zbarsky |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |