ShadowRoot class
- Inheritance
- Object
- JSObject
- DartHtmlDomObject
- EventTarget
- Node
- DocumentFragment
- ShadowRoot
- Annotations
- @DomName('ShadowRoot')
- @SupportedBrowser(SupportedBrowser.CHROME, '26')
- @Experimental()
Static Properties
- instanceRuntimeType → Type @Deprecated("Internal Use Only"), read-only
- supported → bool final
Constructors
Properties
- activeElement → Element @DocsEditable(), @DomName('ShadowRoot.activeElement'), read-only
- applyAuthorStyles → bool @deprecated, read / write
- delegatesFocus → bool @DocsEditable(), @DomName('ShadowRoot.delegatesFocus'), @Experimental(), read-only
- host → Element @DocsEditable(), @DomName('ShadowRoot.host'), @Experimental(), read-only
- innerHtml → String @DocsEditable(), @DomName('ShadowRoot.innerHTML'), read / write
- olderShadowRoot → ShadowRoot @DocsEditable(), @DomName('ShadowRoot.olderShadowRoot'), @Experimental(), read-only
- resetStyleInheritance → bool @deprecated, read / write
- styleSheets → List<StyleSheet> @DocsEditable(), @DomName('ShadowRoot.styleSheets'), @Experimental(), read-only
- baseUri → String @DocsEditable(), @DomName('Node.baseURI'), read-only, inherited
- childNodes → List<Node> @DocsEditable(), @DomName('Node.childNodes'), read-only, inherited
-
A list of this node's children.
- children → List<Element> read / write, inherited
- firstChild → Node @DocsEditable(), @DomName('Node.firstChild'), read-only, inherited
-
The first child of this node.
- hashCode → int read-only, inherited
- lastChild → Node @DocsEditable(), @DomName('Node.lastChild'), read-only, inherited
-
The last child of this node.
- nextNode → Node @DocsEditable(), @DomName('Node.nextSibling'), read-only, inherited
-
The next sibling node.
- nodeName → String @DocsEditable(), @DomName('Node.nodeName'), read-only, inherited
-
The name of this node.
- nodes → List<Node> read / write, inherited
-
A modifiable list of this node's children.
- nodeType → int @DocsEditable(), @DomName('Node.nodeType'), read-only, inherited
-
The type of node.
- nodeValue → String @DocsEditable(), @DomName('Node.nodeValue'), read-only, inherited
-
The value of this node.
- on → Events read-only, inherited
-
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
- ownerDocument → Document @DocsEditable(), @DomName('Node.ownerDocument'), read-only, inherited
-
The document this node belongs to.
- parent → Element @DocsEditable(), @DomName('Node.parentElement'), read-only, inherited
-
The parent element of this node.
- parentNode → Node @DocsEditable(), @DomName('Node.parentNode'), read-only, inherited
-
The parent node of this node.
- previousNode → Node @DocsEditable(), @DomName('Node.previousSibling'), read-only, inherited
-
The previous sibling node.
- runtimeType → Type read-only, inherited
-
A representation of the runtime type of the object.
- text → String @DocsEditable(), @DomName('Node.textContent'), read / write, inherited
-
All text within this node and its descendents.
- treeRoot → Node @DocsEditable(), @DomName('Node.treeRoot'), @Experimental(), read-only, inherited
Operators
- operator ==(
other) → bool inherited -
The equality operator.
Methods
- clone(
[bool deep ]) → Node -
Returns a copy of this node.
- elementFromPoint(
int x, int y) → Element @DocsEditable(), @DomName('ShadowRoot.elementFromPoint') - elementsFromPoint(
int x, int y) → List<Element> @DocsEditable(), @DomName('ShadowRoot.elementsFromPoint'), @Experimental() - getSelection(
) → Selection @DocsEditable(), @DomName('ShadowRoot.getSelection') - addEventListener(
String type, EventListener listener, [ bool useCapture ]) → void inherited - append(
Node node) → Node @DocsEditable(), @DomName('Node.appendChild'), inherited -
Adds a node to the end of the child nodes list of this node.
- 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.
- appendText(
String text) → void inherited -
Adds the specified text as a text node after the last child of this document fragment.
- contains(
Node other) → bool @DocsEditable(), @DomName('Node.contains'), inherited -
Returns true if this node contains the specified node.
- dispatchEvent(
Event event) → bool @DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited - getElementById(
String elementId) → Element @DocsEditable(), @DomName('DocumentFragment.getElementById'), @Experimental(), inherited - hasChildNodes(
) → bool @DocsEditable(), @DomName('Node.hasChildNodes'), inherited -
Returns true if this node has any children.
- insertAllBefore(
Iterable<Node> newNodes, Node refChild) → Node inherited -
Inserts all of the nodes into this node directly before refChild.
- insertBefore(
Node node, Node child) → Node @DocsEditable(), @DomName('Node.insertBefore'), inherited -
Inserts all of the nodes into this node directly before refChild.
- noSuchMethod(
Invocation invocation) → dynamic inherited -
Invoked when a non-existent method or property is accessed.
- query(
String relativeSelectors) → Element @DomName('DocumentFragment.querySelector'), @Experimental(), inherited -
Alias for querySelector. Note this function is deprecated because its semantics will be changing in the future.
- queryAll(
String relativeSelectors) → ElementList<Element> @DomName('DocumentFragment.querySelectorAll'), @Experimental(), inherited -
Alias for querySelectorAll. Note this function is deprecated because its semantics will be changing in the future.
- querySelector(
String selectors) → Element @DocsEditable(), @DomName('DocumentFragment.querySelector'), inherited -
Finds the first descendant element of this document fragment that matches the specified group of selectors.
- querySelectorAll(
String selectors) → ElementList<Element> inherited -
Finds all descendant elements of this document fragment that match the specified group of selectors.
- remove(
) → void @DomName('Node.removeChild'), inherited -
Removes this node from the DOM.
- removeEventListener(
String type, EventListener listener, [ bool useCapture ]) → void inherited - replaceWith(
Node otherNode) → Node @DomName('Node.replaceChild'), inherited -
Replaces this node with another node.
- setInnerHtml(
String html, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → void inherited - toString(
) → String inherited -
Print out a String representation of this Node.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/ShadowRoot-class.html