ShadowRoot class

Annotations
  • DomName('ShadowRoot')
  • SupportedBrowser(SupportedBrowser.CHROME, '26')
  • Experimental()
Extends

Static Properties

supported bool
read-only

Instance Properties

activeElement Element
read-only
host Element
read-only
innerHtml String
read / write
olderShadowRoot ShadowRoot
read-only
styleSheets List<StyleSheet>
read-only
resetStyleInheritance bool
read / write
applyAuthorStyles bool
read / write
on Events Inherited
read-only
nodes List<Node> Inherited
read / write
baseUri String Inherited
read-only
childNodes List<Node> Inherited
read-only
firstChild Node Inherited
read-only
lastChild Node Inherited
read-only
nextNode Node Inherited
read-only
nodeName String Inherited
read-only
nodeType int Inherited
read-only
nodeValue String Inherited
read-only
ownerDocument Document Inherited
read-only
parent Element Inherited
read-only
parentNode Node Inherited
read-only
previousNode Node Inherited
read-only
text String Inherited
read / write
children List<Element> Inherited
read / write
innerHtml String Inherited
read / write

Instance Methods

clone(bool deep) → Node
Returns a copy of this node.
elementFromPoint(int x, int y) → Element
getElementById(String elementId) → Element
getElementsByClassName(String className) → List<Node>
getElementsByTagName(String tagName) → List<Node>
getSelection() → Selection
toString() → String Inherited
Print out a String representation of this Node.
addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void Inherited
removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void Inherited
dispatchEvent(Event event) → bool Inherited
remove() → void Inherited
Removes this node from the DOM.
replaceWith(Node otherNode) → Node Inherited
Replaces this node with another node.
insertAllBefore(Iterable<Node> newNodes, Node refChild) → Node Inherited
Inserts all of the nodes into this node directly before refChild.
append(Node newChild) → Node Inherited
Adds a node to the end of the child nodes list of this node.
contains(Node other) → bool Inherited
Returns true if this node contains the specified node.
hasChildNodes() → bool Inherited
Returns true if this node has any children.
insertBefore(Node newChild, Node refChild) → Node Inherited
Inserts all of the nodes into this node directly before refChild.
querySelectorAll(String selectors) → ElementList<Element> Inherited
Finds all descendant elements of this document fragment that match the specified group of selectors.
setInnerHtml(String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) → void Inherited
appendText(String text) → void Inherited
Adds the specified text as a text node after the last child of this document fragment.
appendHtml(String text, {NodeValidator validator, NodeTreeSanitizer, treeSanitizer}) → void Inherited
Parses the specified text as HTML and adds the resulting node after the last child of this document fragment.
query(String relativeSelectors) → Element Inherited
Alias for querySelector. Note this function is deprecated because its semantics will be changing in the future.
queryAll(String relativeSelectors) → ElementList<Element> Inherited
Alias for querySelectorAll. Note this function is deprecated because its semantics will be changing in the future.
querySelector(String selectors) → Element Inherited
Finds the first descendant element of this document fragment that matches the specified group of selectors.