Welcome What's new in Chrome extensions API reference Samples
Welcome What's new in Chrome extensions API reference Samples

chrome.dom

  • Description

    Use the chrome.dom API to access special DOM APIs for Extensions

  • Availability
    Chrome 88+

Summary

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

This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.