- From: Mason Freed <notifications@github.com>
- Date: Tue, 11 Aug 2020 09:47:10 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 11 August 2020 16:47:23 UTC
I would like to re-iterate my [comment](https://github.com/w3c/webcomponents/issues/871#issuecomment-608129418), and propose that we solve this issue by adding the following to the [ElementInternals interface](https://html.spec.whatwg.org/multipage/custom-elements.html#the-elementinternals-interface):
---
```WebIDL
interface ElementInternals {
readonly attribute ShadowRoot? shadowRoot;
};
```
**internals.shadowRoot**: Returns *internals*'s [target element](https://html.spec.whatwg.org/multipage/custom-elements.html#internals-target)'s [shadow root](https://dom.spec.whatwg.org/#concept-element-shadow-root). This attribute will return both open and closed shadow roots. If shadow is null, then return null.
---
If there is general agreement on this, then I will put together a spec PR, and will get this implemented in Chromium.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/871#issuecomment-672082936
Received on Tuesday, 11 August 2020 16:47:23 UTC