Not documented.
- Annotations
- DomName('Node')
- Extends
- Object
- EventTarget
- Node
Constants
- int ATTRIBUTE_NODE = 2
-
const
- int CDATA_SECTION_NODE = 4
-
const
- int COMMENT_NODE = 8
-
const
- int DOCUMENT_FRAGMENT_NODE = 11
-
const
- int DOCUMENT_NODE = 9
-
const
- int DOCUMENT_TYPE_NODE = 10
-
const
- int ELEMENT_NODE = 1
-
const
- int ENTITY_NODE = 6
-
const
- int ENTITY_REFERENCE_NODE = 5
-
const
- int NOTATION_NODE = 12
-
const
- int PROCESSING_INSTRUCTION_NODE = 7
-
const
- int TEXT_NODE = 3
-
const
Properties
- String baseUri
-
read-only
- List<Node> childNodes
-
read-onlyA list of this node's children.
- Node firstChild
-
read-onlyThe first child of this node.
- Node lastChild
-
read-onlyThe last child of this node.
- Node nextNode
-
read-onlyThe next sibling node.
- String nodeName
-
read-onlyThe name of this node.
- List<Node> nodes
-
read / writeA modifiable list of this node's children.
- int nodeType
-
read-onlyThe type of node.
- String nodeValue
-
read-onlyThe value of this node.
- Events on
-
read-only, inheritedThis is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
- Document ownerDocument
-
read-onlyThe document this node belongs to.
- Element parent
-
read-onlyThe parent element of this node.
- Node parentNode
-
read-onlyThe parent node of this node.
- Node previousNode
-
read-onlyThe previous sibling node.
- String text
-
read / writeAll text within this node and its decendents.
Methods
-
addEventListener(
String type, dynamic listener(Event event), [bool useCapture]) → void -
inherited
-
append(
Node newChild) → Node - Adds a node to the end of the child nodes list of this node.
-
clone(
bool deep) → Node - Returns a copy of this node.
-
contains(
Node other) → bool - Returns true if this node contains the specified node.
-
dispatchEvent(
Event event) → bool -
inherited
-
hasChildNodes(
) → bool - 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 newChild, Node refChild) → Node - Inserts all of the nodes into this node directly before refChild.
-
remove(
) → void - Removes this node from the DOM.
-
removeEventListener(
String type, dynamic listener(Event event), [bool useCapture]) → void -
inherited
-
replaceWith(
Node otherNode) → Node - Replaces this node with another node.
-
toString(
) → String - Print out a String representation of this Node.