Re: [w3c/webcomponents] light dom availability (#673)

You can't rely on your children to be present due to the way HTML parser works (it can add more children as the streamed content arrives). Instead, you should be doing work in child node's `connectedCallback`. If that's not possible, I'd suggest using `MutationObserver` to observe the changes to the child nodes. In general, there is no callback for when all children are inserted since there could be more children being inserted by DOM manipulation. See https://github.com/w3c/webcomponents/issues/619

-- 
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/673#issuecomment-333702197

Received on Tuesday, 3 October 2017 00:20:46 UTC