ShadowRoot
The ShadowRoot interface of the Shadow DOM API is the root node of a DOM subtree that is rendered separately from a document's main DOM tree.
Documentation ShadowRoot by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Instance Members
mode: ShadowRootModeThe mode of the ShadowRoot — either open or closed. This defines whether or not the shadow root's internal features are accessible from JavaScript.
host: ElementReturns a reference to the DOM element the ShadowRoot is attached to.
innerHTML: StringSets or returns a reference to the DOM tree inside the ShadowRoot.
activeElement: ElementstyleSheets: StyleSheetListpointerLockElement: ElementfullscreenElement: Element| Name | Type |
|---|---|
elementId |
String |
| Returns |
|---|
| Element |
getElementsByTagName(localName: String): HTMLCollection| Name | Type |
|---|---|
localName |
String |
| Returns |
|---|
| HTMLCollection |
getElementsByTagNameNS(namespace: String, localName: String): HTMLCollection| Name | Type |
|---|---|
namespace |
String |
localName |
String |
| Returns |
|---|
| HTMLCollection |
getElementsByClassName(classNames: String): HTMLCollection| Name | Type |
|---|---|
classNames |
String |
| Returns |
|---|
| HTMLCollection |
| Name | Type |
|---|---|
x |
Float |
y |
Float |
| Returns |
|---|
| Element |
| Name | Type |
|---|---|
x |
Float |
y |
Float |
| Returns |
|---|
| Array<Element> |