ShadowRoot class
- Inheritance
- Object
- EventTarget
- Node
- DocumentFragment
- ShadowRoot
- Implements
- Annotations
- @DomName('ShadowRoot')
- @SupportedBrowser(SupportedBrowser.CHROME, '26')
- @Experimental()
- @Native("ShadowRoot")
Properties
- activeElement → Element
-
@DocsEditable(), @DomName('ShadowRoot.activeElement'), final
- applyAuthorStyles ↔ bool
-
read / write
- delegatesFocus → bool
-
@DocsEditable(), @DomName('ShadowRoot.delegatesFocus'), @Experimental(), final
- fullscreenElement → Element
-
@DocsEditable(), @DomName('ShadowRoot.fullscreenElement'), @Experimental(), final
- host → Element
-
@DocsEditable(), @DomName('ShadowRoot.host'), @Experimental(), final
- innerHtml ↔ String
-
@DocsEditable(), @DomName('ShadowRoot.innerHTML'), @JSName('innerHTML'), read / write
- mode → String
-
@DocsEditable(), @DomName('ShadowRoot.mode'), @Experimental(), final
- olderShadowRoot → ShadowRoot
-
@DocsEditable(), @DomName('ShadowRoot.olderShadowRoot'), @Experimental(), final
- pointerLockElement → Element
-
@DocsEditable(), @DomName('ShadowRoot.pointerLockElement'), @Experimental(), final
- resetStyleInheritance ↔ bool
-
read / write
-
styleSheets
→ List<
StyleSheet> -
@Creates('_StyleSheetList'), @DocsEditable(), @DomName('ShadowRoot.styleSheets'), @Experimental(), @Returns('_StyleSheetList|Null'), final
- baseUri → String
-
@DocsEditable(), @DomName('Node.baseURI'), @JSName('baseURI'), final, inherited
-
childNodes
→ List<
Node> -
A list of this node's children. [...]
@Creates('NodeList'), @DocsEditable(), @DomName('Node.childNodes'), @Returns('NodeList'), final, inherited
-
children
↔ List<
Element> -
read / write, inherited
- firstChild → Node
-
The first child of this node. [...]
@DocsEditable(), @DomName('Node.firstChild'), final, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isConnected → bool
-
@DocsEditable(), @DomName('Node.isConnected'), @Experimental(), final, inherited
- lastChild → Node
-
The last child of this node. [...]
@DocsEditable(), @DomName('Node.lastChild'), final, inherited
- nextNode → Node
-
The next sibling node. [...]
@DocsEditable(), @DomName('Node.nextSibling'), @JSName('nextSibling'), final, inherited
- nodeName → String
-
The name of this node. [...]
@DocsEditable(), @DomName('Node.nodeName'), final, inherited
-
nodes
↔ List<
Node> -
A modifiable list of this node's children.
read / write, inherited
- nodeType → int
-
The type of node. [...]
@DocsEditable(), @DomName('Node.nodeType'), final, inherited
- nodeValue → String
-
The value of this node. [...]
@DocsEditable(), @DomName('Node.nodeValue'), final, inherited
- on → Events
-
This is an ease-of-use accessor for event streams which should only be
used when an explicit accessor is not available.
read-only, inherited
- ownerDocument → Document
-
The document this node belongs to. [...]
@DocsEditable(), @DomName('Node.ownerDocument'), final, inherited
- parent → Element
-
The parent element of this node. [...]
@DocsEditable(), @DomName('Node.parentElement'), @JSName('parentElement'), final, inherited
- parentNode → Node
-
The parent node of this node. [...]
@DocsEditable(), @DomName('Node.parentNode'), final, inherited
- previousNode → Node
-
The previous sibling node. [...]
@DocsEditable(), @DomName('Node.previousSibling'), @JSName('previousSibling'), final, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- text ↔ String
-
All text within this node and its descendents. [...]
@DocsEditable(), @DomName('Node.textContent'), @JSName('textContent'), read / write, inherited
Methods
-
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 -
Adds a node to the end of the child nodes list of this node. [...]
@DocsEditable(), @DomName('Node.appendChild'), @JSName('appendChild'), inherited
-
appendHtml(
String text, { NodeValidator validator, dynamic NodeTreeSanitizer, dynamic treeSanitizer }) → void -
Parses the specified text as HTML and adds the resulting node after the
last child of this document fragment.
inherited
-
appendText(
String text) → void -
Adds the specified text as a text node after the last child of this
document fragment.
inherited
-
clone(
bool deep) → Node -
Returns a copy of this node. [...]
@DocsEditable(), @DomName('Node.cloneNode'), @JSName('cloneNode'), inherited
-
contains(
Node other) → bool -
Returns true if this node contains the specified node. [...]
@DocsEditable(), @DomName('Node.contains'), inherited
-
dispatchEvent(
Event event) → bool -
@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
-
getElementById(
String elementId) → Element -
@DocsEditable(), @DomName('DocumentFragment.getElementById'), @Experimental(), inherited
-
getRootNode(
[Map options ]) → Node -
@DocsEditable(), @DomName('Node.getRootNode'), @Experimental(), inherited
-
hasChildNodes(
) → bool -
Returns true if this node has any children. [...]
@DocsEditable(), @DomName('Node.hasChildNodes'), inherited
-
insertAllBefore(
Iterable< Node> newNodes, Node refChild) → Node -
Inserts all of the nodes into this node directly before refChild. [...]
inherited
-
insertBefore(
Node node, Node child) → Node -
Inserts all of the nodes into this node directly before refChild. [...]
@DocsEditable(), @DomName('Node.insertBefore'), inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
querySelector(
String selectors) → Element -
Finds the first descendant element of this document fragment that matches
the specified group of selectors. [...]
@DocsEditable(), @DomName('DocumentFragment.querySelector'), inherited
-
querySelectorAll<
T extends Element> (String selectors) → ElementList< T> -
Finds all descendant elements of this document fragment that match the
specified group of selectors. [...]
inherited
-
remove(
) → void -
Removes this node from the DOM.
@DomName('Node.removeChild'), inherited
-
removeEventListener(
String type, EventListener listener, [ bool useCapture ]) → void -
inherited
-
replaceWith(
Node otherNode) → Node -
Replaces this node with another node.
@DomName('Node.replaceChild'), inherited
-
setInnerHtml(
String html, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → void -
inherited
-
toString(
) → String -
Print out a String representation of this Node.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited