- From: Mason Freed <notifications@github.com>
- Date: Wed, 08 Apr 2020 09:33:43 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 8 April 2020 16:33:57 UTC
@caridy thanks for your support here. I'm hoping we can move ahead with this proposal. @bicknellr declarative shadow root attachment is defined here to occur when the `</template>` tag is parsed. If there is asynchronous script calling `attachShadow()` while parsing is also happening, then the timing (by definition, almost) cannot be pinned down. However, if we separately solve the "parser finished" problem, then the component will be able to know that the declarative shadow root is now attached. I don't think the positioning within the parent will help here, as the asynchronous script could arbitrarily execute even between the parent/host element being parsed and the declarative `<template>`. The same is true if we make the declarative shadow root attach to the next sibling. Fundamentally, if a component/SSR framework is sending declarative shadow root content and also calling `attachShadow()`, then the framework will need to handle this race. All I'm trying to ensure is that we've added the necessary low-level APIs here to make that straightforward. -- 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-611061350
Received on Wednesday, 8 April 2020 16:33:57 UTC