|
Re: sXBL issue -- bindings getting notified when the bound element is ins: msg#00031web.svg
At 06:08 PM 3/22/2005 -0600, Boris Zbarsky wrote: Jon Ferraiolo wrote: That would mean - binding must happen before element is ever accessed (e.g at parse time and in createElementNS or similar methods) - bindings cannot be changed through styling That seems to go against the direction of XBL2. We cannot have both well-defined methods and dynamic binding attachment 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? This is certainly the primary use that I have in mind. Peter (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? |
|
| <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: 00031, Boris Zbarsky |
|---|---|
| Next by Date: | coordinate example not well-formed [was: GRDDL in non-HTML XML - how, exactly?]: 00031, Dan Connolly |
| Previous by Thread: | Re: sXBL issue -- bindings getting notified when the bound element is inserted into a documenti: 00031, Boris Zbarsky |
| Next by Thread: | Re: sXBL issue -- bindings getting notified when the bound element is inserted into a document: 00031, Boris Zbarsky |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |