Re: [whatwg/dom] Declarative Shadow DOM (#831)

Now I realize the situation is a lot more complicated than that because of the sync parsing behavior in which case the custom element gets created before any of its children get parsed. In that scenario (non-upgrading case), you'd have to wait until all the children had been parsed for hydration.

Furthermore, other scripts on a page can attach a shadow root on the custom element before its children get parsed, or worse yet, anyone can access to template's content and have reference to those nodes, thereby breaking the encapsulation.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/831#issuecomment-604751206

Received on Friday, 27 March 2020 00:17:18 UTC