ShadowRoot

package js.html

extends DocumentFragmentNodeEventTarget

Available on js

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 also:

Variables

read onlyactiveElement:Element

read onlyfullscreenElement:Element

read onlyhost:Element

Returns a reference to the DOM element the ShadowRoot is attached to.

innerHTML:String

Sets or returns a reference to the DOM tree inside the ShadowRoot.

read onlymode:ShadowRootMode

The mode of the ShadowRoot — either open or closed. This defines whether or not the shadow root's internal features are accessible from JavaScript.

read onlypointerLockElement:Element

read onlystyleSheets:StyleSheetList

Methods

elementFromPoint(x:Float, y:Float):Element

elementsFromPoint(x:Float, y:Float):Array<Element>

getElementsByClassName(classNames:String):HTMLCollection

getElementsByTagName(localName:String):HTMLCollection

getElementsByTagNameNS(namespace:String, localName:String):HTMLCollection

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/ShadowRoot.html