Re: [webcomponents]: What callbacks do custom elements need?

On Mon, Mar 11, 2013 at 1:16 PM, Boris Zbarsky <> wrote:

> On 3/11/13 3:44 PM, Daniel Buchner wrote:
>> Just to be clear, these are callbacks (right?), meaning synchronous
>> executions on one specific node. That is a far cry from the old issues
>> with mutation events and nightmarish bubbling scenarios.
> Where does bubbling come in?
> The issue with _synchronous_ (truly synchronous, as opposed to end of
> microtask or whatnot) callbacks is that they are required to fire in the
> middle of DOM mutation while the DOM is in an inconsistent state of some
> sort.  This has nothing to do with bubbling and everything to do with what
> happens when you append a node somewhere while it already has a parent and
> it has a removed callback that totally rearranges the DOM in the middle of
> your append.

So does it actually need to be sync at that leve?  I'm not sure why it does
really.  Can someone explain just for my own clarity?


Received on Monday, 11 March 2013 20:39:33 UTC