Re: [whatwg/dom] [ElementInternals] `ElementInternals.shadowRoot` is `null` but `this.shadowRoot` is not (its a `ShadowRoot`) (Issue #1365)

trusktr left a comment (whatwg/dom#1365)

@sorvell mentioned that to maintain BC, I think we will likely need something like:

```js
parsingCompleteCallback() {
  if (!this.#internals.shadowRoot) {
     this.attachShadow(...);
  }
}
```

but this means it requires JavaScript. We are also thinking about a Declarative Custom Elements solution. We don't want those people to be required to use JavaScript for DSD.

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

Message ID: <whatwg/dom/issues/1365/2787173407@github.com>

Received on Tuesday, 8 April 2025 17:28:13 UTC