Intent to prototype and ship: ElementInternals.shadowRoot

29 views
Skip to first unread message

Edgar Chen

unread,
Aug 10, 2021, 5:09:55 AMAug 10
to dev-pl...@lists.mozilla.org
Summary: Adds the ability to retrieve the shadow root from `ElementInternals`, via the `ElementInternals.shadowRoot` attribute. This attribute is restricted to only return shadow roots created during or after the custom element constructor, for custom elements.


Standard: https://html.spec.whatwg.org/multipage/custom-elements.html#shadow-root-access

Platform coverage: all

Preference: dom.webcomponents.elementInternals.enabled

Devtools bug: N/A

Other browsers:
  * WebKit: Not implemented yet.
  * Blink: Shipped.

web-platform-tests:
https://github.com/web-platform-tests/wpt/blob/master/custom-elements/element-internals-shadowroot.html

--
Edgar Chen
Reply all
Reply to author
Forward
0 new messages