- From: Toni-Jan Keith Monserrat <notifications@github.com>
- Date: Wed, 01 Nov 2017 15:43:18 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 1 November 2017 15:43:41 UTC
> The spec explicitly states which elements can accept a shadow root in the attachShadow() invocation steps here: https://dom.spec.whatwg.org/#dom-element-attachshadow. Yep. So if I read it right, using `div` would return an error (or at least the `shadowroot` will not work) because you can't attachShadow on it: (See number 2) > It's most likely that if a shadow root is declared that they're rendering similar, if not the same things, and are using it for the purposes of server-rendering. I think this is a better path on having `shadowroot`. I think it should be the SSR system's job to compute the eventual shadowDOM of an element and create a `shadowroot` tag and not the author. The author's job is to still use the usual way of defining a shadowDOM which is to use the `attachShadow` method. -- 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/510#issuecomment-341145332
Received on Wednesday, 1 November 2017 15:43:41 UTC