Re: [w3c/webcomponents] [feature request] change when upgrade/connected happens during parsing, so that it is the first event in the following microtask (#787)

I think the only option is to tell end users of the elements to ensure that the custom elements are **_always_**  defined before they are ever used (f.e. define them in the `<head>` of the page). This way, we can rely on the custom elements' children being already upgraded when the parent's `connectedCallback` manually observes the children.

Mainly I was trying to make everything "just work", even if for example the end user of the custom elements placed the script tag at the bottom of the page (defined the custom elements at the end of the body). To make this work is literally so much pain.

-- 
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/787#issuecomment-459224539

Received on Thursday, 31 January 2019 05:50:43 UTC