Access special extension only DOM features.
Access special extension only DOM features.
dom.openOrClosedShadowRoot()Gets the open shadow root or the closed shadow root hosted by the specified element. If the shadow root isn't attached to the element, it will return null.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
openOrClosedShadowRoot |
88 | 88 | NoUseelement.openOrClosedShadowRoot, available since Firefox 63. |
? | 74 | No | ? | ? | NoUseelement.openOrClosedShadowRoot, available since Firefox 63. |
? | No | ? |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/dom