- From: Mason Freed <notifications@github.com>
- Date: Tue, 16 May 2023 09:20:18 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 16 May 2023 16:20:24 UTC
> @mfreed7 how can you do a closed declarative shadow root with a `<div>`? I don't think you can. And think we should maintain parity between open and closed. ```html <div> <template shadowrootmode=closed> I'm closed! </template> </div> ``` Maybe I'm missing what you're asking. > (In retrospect it was probably a mistake to allow them on anything but custom elements (in userland, that is). `attachShadow()` on `ElementInternals` would have removed the need for a lot of bookkeeping.) Hmm, I suppose I'd be interested in hearing more about why. The biggest complaint I hear about web components is that too many behaviors are tied together into one package. E.g. shadow dom encapsulates *everything*, and you can't opt out of parts of that. Further tying things together seems to run counter to that developer feedback. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/831#issuecomment-1549982226 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/831/1549982226@github.com>
Received on Tuesday, 16 May 2023 16:20:24 UTC