W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

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

From: Brian Kardell <bkardell@gmail.com>
Date: Mon, 11 Mar 2013 13:39:03 -0700
Message-ID: <CADC=+jekOX3Oh7jf_Jp62wU-OMa75GteZq=isRZ_ACY5FUonmQ@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: "public-webapps@w3.org" <public-webapps@w3.org>
On Mon, Mar 11, 2013 at 1:16 PM, Boris Zbarsky <bzbarsky@mit.edu> 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?

-Brian
Received on Monday, 11 March 2013 20:39:33 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:58 GMT