W3cubDocs

/Haxe JavaScript

ShadowRoot

package js.html

extends DocumentFragmentNodeEventTarget

@:native("ShadowRoot") 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:

Variables

applyAuthorStyles:Bool

read only host:Element

A DOM element to which the ShadowRoot is attatched.

innerHTML:String

The DOM tree inside the ShadowRoot.

read only olderShadowRoot:ShadowRoot

read only styleSheets:StyleSheetList

Methods

getElementsByClassName (classNames:String):HTMLCollection

getElementsByTagName (localName:String):HTMLCollection

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

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