ShadowRoot class
- Inheritance
- Object
- EventTarget
- Node
- DocumentFragment
- ShadowRoot
- Implemented types
- Annotations
- @SupportedBrowser.new(SupportedBrowser.CHROME, '26')
- @Native.new("ShadowRoot")
Properties
- activeElement→Element?
- no setteroverride
- applyAuthorStyles↔bool
- getter/setter pair
- baseUri→String?
- no setterinherited
- childNodes→List<
Node> - A list of this node's children.no setterinherited
- children↔List<
Element> - getter/setter pairinherited
- delegatesFocus→bool?
- no setter
- firstChild→Node?
- The first child of this node.no setterinherited
- fullscreenElement→Element?
- no setteroverride
- hashCode→int
- The hash code for this object.no setterinherited
- host→Element?
- no setter
- innerHtml↔String?
- getter/setter pairoverride
- isConnected→bool?
- no setterinherited
- lastChild→Node?
- The last child of this node.no setterinherited
- mode→String?
- no setter
- nextNode→Node?
- The next sibling node.no setterinherited
- nodeName→String?
- The name of this node.no setterinherited
- nodes↔List<
Node> - A modifiable list of this node's children.getter/setter pairinherited
- nodeType→int
- The type of node.no setterinherited
- nodeValue→String?
- The value of this node.no setterinherited
- olderShadowRoot→ShadowRoot?
- no setter
- on→Events
- This is an ease-of-use accessor for event streams which should only beused when an explicit accessor is not available.no setterinherited
- ownerDocument→Document?
- The document this node belongs to.no setterinherited
- parent→Element?
- The parent element of this node.no setterinherited
- parentNode→Node?
- The parent node of this node.no setterinherited
- pointerLockElement→Element?
- no setteroverride
- previousNode→Node?
- The previous sibling node.no setterinherited
- resetStyleInheritance↔bool
- getter/setter pair
- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
- styleSheets→List<
StyleSheet> ? - no setteroverride
- text↔String?
- All text within this node and its descendants.getter/setter pairinherited
Methods
- addEventListener(
Stringtype,EventListener?listener, [bool?useCapture])→ void - inherited
- append(
Nodenode)→Node - Adds a node to the end of the childnodes list of this node.inherited
- appendHtml(
Stringtext, {NodeValidator?validator,NodeTreeSanitizer?treeSanitizer})→ void - Parses the specified text as HTML and adds the resulting node after thelast child of this document fragment.inherited
- appendText(
Stringtext)→ void - Adds the specified text as a text node after the last child of thisdocument fragment.inherited
- clone(
bool?deep)→Node - Returns a copy of this node.inherited
- contains(
Node?other)→bool - Returns true if this node contains the specified node.inherited
- dispatchEvent(
Eventevent)→bool - inherited
- elementFromPoint(
intx,inty)→Element? - override
- elementsFromPoint(
intx,inty)→List< Element> - override
- getElementById(
StringelementId)→Element? - inherited
- getRootNode(
[Map?options])→Node - inherited
- getSelection(
)→Selection? - override
- hasChildNodes(
)→bool - Returns true if this node has any children.inherited
- insertAllBefore(
Iterable< Node> newNodes,Nodechild)→ void - Inserts all of the nodes into this node directly before child.inherited
- insertBefore(
Nodenode,Node?child)→Node - Inserts the given node into this node directly before child.If child is
null, then the given node is inserted at the endof this node's child nodes.inherited - noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- querySelector(
Stringselectors)→Element? - Finds the first descendant element of this document fragment that matchesthe specified group of selectors.inherited
- querySelectorAll<
T extendsElement> (Stringselectors)→ElementList< T> - Finds all descendant elements of this document fragment that match thespecified group of selectors.inherited
- remove(
)→ void - Removes this node from the DOM.inherited
- removeEventListener(
Stringtype,EventListener?listener, [bool?useCapture])→ void - inherited
- replaceWith(
NodeotherNode)→Node - Replaces this node with another node.inherited
- setInnerHtml(
String?html, {NodeValidator?validator,NodeTreeSanitizer?treeSanitizer})→ void - inherited
- toString(
)→String - Print out a String representation of this Node.inherited
Operators
- operator ==(
Objectother)→bool - The equality operator.inherited