Re: [whatwg/dom] Should attachShadow throw or override when an existing declarative shadow root doesn't match? (Issue #1235)

I did think about this one. The important detail (to me at least) is that `attachShadow` in these cases will clear out the shadow root before returning it. So it's not like this is an end-run around revealing closed shadow root content or anything. It's just a weird way to create a closed shadow root via a call to `attachShadow({mode:'open'})`.

I do agree that it's perhaps a bit odd that the options provided to `attachShadow` don't get respected in this case, but the alternative seemed worse to me: *changing* the flags on an already-existing shadow root as a result of this call. I'm open to suggestions. (Keeping in mind that several implementations have shipped.)

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

Message ID: <whatwg/dom/issues/1235/1828413062@github.com>

Received on Monday, 27 November 2023 18:42:38 UTC