Re: [w3c/webcomponents] connectedCallback timing when the document parser creates custom elements (#551)

> Nobody knows how to setup a custom element though, in a way that works with definitions already known, loaded on demand, or procedural.

I don't understand this. You just need to iterate over child nodes inside the constructor if there are any, schedule a MutationObserver on child node change on `this` and then re-iterate whenever child nodes are inserted or removed. Simple as that. The element needs to remain functional throughout this process after the constructor had finished running.

-- 
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/551#issuecomment-429567921

Received on Saturday, 13 October 2018 19:15:50 UTC