Re: [w3c/webcomponents] CE reaction queue's not-really-sync behavior doesn't provide strong enough guarantees about when reactions occur (#616)

> > Unless callbacks are fully synchronous,
>
> By the way, even "fully synchronous" callbacks are insufficient, because one DOM operation (for example, remove) can change the state of multiple custom elements at once.

Well, by fully synchronous, I meant that each DOM operation would be calling JS as it mutates DOM.  Each DOM operation can really be broken into pieces in terms of pre-insert, and other primitive operations in the DOM specification.  e.g. removing all children would result in each child getting a callback as itself is getting removed and so on. 

This, however, is precisely what Google objected as one issue they can’t live with so I don’t think we can do this.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/616#issuecomment-268161116

Received on Tuesday, 20 December 2016 05:49:52 UTC