dart:html
Node class
- Inheritance
- Implementers
- Annotations
Properties
- baseUri → String
@JSName('baseURI'), final
- childNodes → List<Node>
@Creates('NodeList'), @Returns('NodeList'), final
- A list of this node's children. [...]
- firstChild → Node
final
- The first child of this node. [...]
- isConnected → bool
final
- lastChild → Node
final
- The last child of this node. [...]
- nextNode → Node
@JSName('nextSibling'), final
- The next sibling node. [...]
- nodeName → String
final
- The name of this node. [...]
- nodes ↔ List<Node>
read / write
- A modifiable list of this node's children.
- nodeType → int
final
- The type of node. [...]
- nodeValue → String
final
- The value of this node. [...]
- ownerDocument → Document
final
- The document this node belongs to. [...]
- parent → Element
@JSName('parentElement'), final
- The parent element of this node. [...]
- parentNode → Node
final
- The parent node of this node. [...]
- previousNode → Node
@JSName('previousSibling'), final
- The previous sibling node. [...]
- text ↔ String
@JSName('textContent'), read / write
- All text within this node and its descendents. [...]
- hashCode → int
read-only, inherited
- The hash code for this object. [...]
- 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.
Methods
- append(Node node) → Node
@JSName('appendChild')
- Adds a node to the end of the child nodes list of this node. [...]
- clone(bool deep) → Node
@JSName('cloneNode')
- Returns a copy of this node. [...]
- contains(Node other) → bool
- Returns true if this node contains the specified node. [...]
- getRootNode([Map options ]) → Node
- 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 node, Node child) → Node
- Inserts all of the nodes into this node directly before refChild. [...]
- remove() → void
- Removes this node from the DOM.
- replaceWith(Node otherNode) → Node
- 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
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
Operators
- operator ==(dynamic other) → bool
inherited
- The equality operator. [...]
Constants
- ATTRIBUTE_NODE → const int
-
2
- CDATA_SECTION_NODE → const int
-
4
-
8
- DOCUMENT_FRAGMENT_NODE → const int
-
11
- DOCUMENT_NODE → const int
-
9
- DOCUMENT_TYPE_NODE → const int
-
10
- ELEMENT_NODE → const int
-
1
- ENTITY_NODE → const int
-
6
- ENTITY_REFERENCE_NODE → const int
-
5
- NOTATION_NODE → const int
-
12
- PROCESSING_INSTRUCTION_NODE → const int
-
7
- TEXT_NODE → const int
-
3