Node class
- Inheritance
- Implemented by
- Annotations
- @DomName('Node')
Constants
- ATTRIBUTE_NODE → int @DocsEditable(), @DomName('Node.ATTRIBUTE_NODE')
-
2
- CDATA_SECTION_NODE → int @DocsEditable(), @DomName('Node.CDATA_SECTION_NODE')
-
4
- COMMENT_NODE → int @DocsEditable(), @DomName('Node.COMMENT_NODE')
-
8
- DOCUMENT_FRAGMENT_NODE → int @DocsEditable(), @DomName('Node.DOCUMENT_FRAGMENT_NODE')
-
11
- DOCUMENT_NODE → int @DocsEditable(), @DomName('Node.DOCUMENT_NODE')
-
9
- DOCUMENT_TYPE_NODE → int @DocsEditable(), @DomName('Node.DOCUMENT_TYPE_NODE')
-
10
- ELEMENT_NODE → int @DocsEditable(), @DomName('Node.ELEMENT_NODE')
-
1
- ENTITY_NODE → int @DocsEditable(), @DomName('Node.ENTITY_NODE')
-
6
- ENTITY_REFERENCE_NODE → int @DocsEditable(), @DomName('Node.ENTITY_REFERENCE_NODE')
-
5
- NOTATION_NODE → int @DocsEditable(), @DomName('Node.NOTATION_NODE')
-
12
- PROCESSING_INSTRUCTION_NODE → int @DocsEditable(), @DomName('Node.PROCESSING_INSTRUCTION_NODE')
-
7
- TEXT_NODE → int @DocsEditable(), @DomName('Node.TEXT_NODE')
-
3
Static Properties
- instanceRuntimeType → Type @Deprecated("Internal Use Only"), read-only
Constructors
Properties
- baseUri → String @DocsEditable(), @DomName('Node.baseURI'), read-only
- childNodes → List<Node> @DocsEditable(), @DomName('Node.childNodes'), read-only
-
A list of this node's children.
- firstChild → Node @DocsEditable(), @DomName('Node.firstChild'), read-only
-
The first child of this node.
- lastChild → Node @DocsEditable(), @DomName('Node.lastChild'), read-only
-
The last child of this node.
- nextNode → Node @DocsEditable(), @DomName('Node.nextSibling'), read-only
-
The next sibling node.
- nodeName → String @DocsEditable(), @DomName('Node.nodeName'), read-only
-
The name of this node.
- nodes → List<Node> read / write
-
A modifiable list of this node's children.
- nodeType → int @DocsEditable(), @DomName('Node.nodeType'), read-only
-
The type of node.
- nodeValue → String @DocsEditable(), @DomName('Node.nodeValue'), read-only
-
The value of this node.
- ownerDocument → Document @DocsEditable(), @DomName('Node.ownerDocument'), read-only
-
The document this node belongs to.
- parent → Element @DocsEditable(), @DomName('Node.parentElement'), read-only
-
The parent element of this node.
- parentNode → Node @DocsEditable(), @DomName('Node.parentNode'), read-only
-
The parent node of this node.
- previousNode → Node @DocsEditable(), @DomName('Node.previousSibling'), read-only
-
The previous sibling node.
- text → String @DocsEditable(), @DomName('Node.textContent'), read / write
-
All text within this node and its descendents.
- treeRoot → Node @DocsEditable(), @DomName('Node.treeRoot'), @Experimental(), read-only
- hashCode → int read-only, inherited
- 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.
- runtimeType → Type read-only, inherited
-
A representation of the runtime type of the object.
Operators
- operator ==(
other) → bool inherited -
The equality operator.
Methods
- append(
Node node) → Node @DocsEditable(), @DomName('Node.appendChild') -
Adds a node to the end of the child nodes list of this node.
- clone(
bool deep) → Node @DocsEditable(), @DomName('Node.cloneNode') -
Returns a copy of this node.
- contains(
Node other) → bool @DocsEditable(), @DomName('Node.contains') -
Returns true if this node contains the specified node.
- hasChildNodes(
) → bool @DocsEditable(), @DomName('Node.hasChildNodes') -
Returns true if this node has any children.
- insertAllBefore(
Iterable<Node> newNodes, Node refChild) → Node -
Inserts all of the nodes into this node directly before refChild.
- insertBefore(
Node node, Node child) → Node @DocsEditable(), @DomName('Node.insertBefore') -
Inserts all of the nodes into this node directly before refChild.
- remove(
) → void @DomName('Node.removeChild') -
Removes this node from the DOM.
- replaceWith(
Node otherNode) → Node @DomName('Node.replaceChild') -
Replaces this node with another node.
- toString(
) → String -
Print out a String representation of this Node.
- addEventListener(
String type, EventListener listener, [ bool useCapture ]) → void inherited - dispatchEvent(
Event event) → bool @DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited - noSuchMethod(
Invocation invocation) → dynamic inherited -
Invoked when a non-existent method or property is accessed.
- removeEventListener(
String type, EventListener listener, [ bool useCapture ]) → void inherited
© 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/Node-class.html