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

 I made a pull request to the [DOM](https://github.com/whatwg/dom/pull/858) and [HTML](https://github.com/whatwg/html/pull/5465) specs a few days ago for declarative Shadow DOM. I believe those PRs (plus some equivalent changes I made to the [explainer](https://github.com/mfreed7/declarative-shadow-dom/blob/master/README.md)) implement the "conclusions" from this issue thread. I believe these PRs cover the "put your scripts after the declarative SSR content" use case quite well, because there are no race conditions there. We will need a solution to the [parser finished / children changed](https://github.com/w3c/webcomponents/issues/809) callback problem in order to support the "load async scripts and then load declarative content" use case (which allows a race) more completely. I believe almost any solution to that problem (which is already needed for several other good reasons) should work with this proposed declarative Shadow DOM solution. One possible solution, once declarative Shadow DOM is a thing, is to add a "declarative shadow DOM attached" callback. But again, I'd like to defer that discussion to the [related thread](https://github.com/w3c/webcomponents/issues/809).

For the reasons above, I'm hoping other implementers can take a look at the PRs and offer some reviews (and ideally support).


-- 
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-617427298

Received on Tuesday, 21 April 2020 21:37:05 UTC