package js.html
extends DocumentFragment › Node › EventTarget
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:
read onlyactiveElement:Elementread onlyfullscreenElement:Elementread onlyhost: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.
read onlymode:ShadowRootModeThe 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:Elementread onlystyleSheets:StyleSheetListelementFromPoint(x:Float, y:Float):ElementelementsFromPoint(x:Float, y:Float):Array<Element>getElementsByClassName(classNames:String):HTMLCollectiongetElementsByTagName(localName:String):HTMLCollectiongetElementsByTagNameNS(namespace:String, localName:String):HTMLCollection
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/ShadowRoot.html