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

I don't know, that makes code like this potentially fail in a very action-at-a-distance way, and with no pointer to the root cause of the issue (a `shadowrootmode=closed` template):

```js
host.attachShadow({ mode: "open" });
host.shadowRoot.appendChild(...);
```

I guess we could add a console warning or so... Maybe it's worth a note in the spec?

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

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

Received on Monday, 27 November 2023 18:47:34 UTC