W3cubDocs

/Dart 2

CharacterData class

Inheritance
Implemented types
Implementers
Annotations
  • @Native("CharacterData")

Properties

dataString
read / write
lengthint
final
nextElementSiblingElement
final
previousElementSiblingElement
final
baseUriString
@JSName('baseURI'), final, inherited
childNodesList<Node>
@Creates('NodeList'), @Returns('NodeList'), final, inherited
A list of this node's children. [...]
firstChildNode
final, inherited
The first child of this node. [...]
hashCodeint
read-only, inherited
The hash code for this object. [...]
isConnectedbool
final, inherited
lastChildNode
final, inherited
The last child of this node. [...]
nextNodeNode
@JSName('nextSibling'), final, inherited
The next sibling node. [...]
nodeNameString
final, inherited
The name of this node. [...]
nodesList<Node>
read / write, inherited
A modifiable list of this node's children.
nodeTypeint
final, inherited
The type of node. [...]
nodeValueString
final, inherited
The value of this node. [...]
onEvents
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.
ownerDocumentDocument
final, inherited
The document this node belongs to. [...]
parentElement
@JSName('parentElement'), final, inherited
The parent element of this node. [...]
parentNodeNode
final, inherited
The parent node of this node. [...]
previousNodeNode
@JSName('previousSibling'), final, inherited
The previous sibling node. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
textString
@JSName('textContent'), read / write, inherited
All text within this node and its descendents. [...]

Methods

after(Object nodes) → void
override
appendData(String data) → void
before(Object nodes) → void
override
deleteData(int offset, int count) → void
insertData(int offset, String data) → void
replaceData(int offset, int count, String data) → void
substringData(int offset, int count) → String
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
append(Node node) → Node
@JSName('appendChild'), inherited
Adds a node to the end of the child nodes list of this node. [...]
clone(bool deep) → Node
@JSName('cloneNode'), inherited
Returns a copy of this node. [...]
contains(Node other) → bool
inherited
Returns true if this node contains the specified node. [...]
dispatchEvent(Event event) → bool
inherited
getRootNode([Map options ]) → Node
inherited
hasChildNodes() → bool
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
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. [...]
remove() → void
inherited
Removes this node from the DOM.
removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
replaceWith(Node otherNode) → Node
inherited
Replaces this node with another node.
toString() → String
inherited
Print out a String representation of this Node.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/CharacterData-class.html