// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[
{
"namespace": "dom",
"description": "Use the <code>chrome.dom</code> API to access special DOM APIs for Extensions",
"functions": [
{
"name": "openOrClosedShadowRoot",
"description": "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.",
"type": "function",
"parameters": [
{
"name": "element",
"type": "object",
"isInstanceOf": "HTMLElement",
"additionalProperties": { "type": "any" }
}
],
"returns": {
"name": "shadowRoot",
"description": "See <a href='https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot'>https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot</a>",
"type": "object",
"additionalProperties": { "type": "any" }
}
}
]
}
]