chrome.dom
- Description
Use the
chrome.dom
API to access special DOM APIs for Extensions - AvailabilityChrome 88+
Summary
- Methods
Methods
openOrClosedShadowRoot
chrome.dom.openOrClosedShadowRoot(
element:
HTMLElement,
)
Gets the open shadow root or the closed shadow root hosted by the specified element. If the element doesn't attach the shadow root, it will return null.
Parameters
- element
HTMLElement