CharacterData class
The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract.
- Implemented types
- Implementers
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- CharacterData()
-
factory
Properties
- addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - after ↔ void Function([Iterable?])
-
Available on ChildNode, provided by the ChildNode$Typings extension
getter/setter pair -
appendChild
↔ T Function<
T extends Node>(T) -
Available on Node, provided by the Node$Typings extension
getter/setter pair - appendData ↔ void Function(String)
-
Available on CharacterData, provided by the CharacterData$Typings extension
getter/setter pair - attributeNode → num
-
Available on Node, provided by the Node$Typings extension
no setter - baseURI → String
-
Available on Node, provided by the Node$Typings extension
Returns node's node document's document base URL.no setter - before ↔ void Function([Iterable?])
-
Available on ChildNode, provided by the ChildNode$Typings extension
getter/setter pair - cdataSectionNode → num
-
Available on Node, provided by the Node$Typings extension
node is a CDATASection node.no setter -
childNodes
→ NodeListOf<
ChildNode> -
Available on Node, provided by the Node$Typings extension
Returns the children.no setter - cloneNode ↔ Node Function([bool?])
-
Available on Node, provided by the Node$Typings extension
getter/setter pair - commentNode → num
-
Available on Node, provided by the Node$Typings extension
node is a Comment node.no setter - compareDocumentPosition ↔ num Function(Node)
-
Available on Node, provided by the Node$Typings extension
getter/setter pair - contains ↔ bool Function([Node?])
-
Available on Node, provided by the Node$Typings extension
getter/setter pair - data ↔ String
-
Available on CharacterData, provided by the CharacterData$Typings extension
MDN Referencegetter/setter pair - deleteData ↔ void Function(num, num)
-
Available on CharacterData, provided by the CharacterData$Typings extension
getter/setter pair - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - documentFragmentNode → num
-
Available on Node, provided by the Node$Typings extension
node is a DocumentFragment node.no setter - documentNode → num
-
Available on Node, provided by the Node$Typings extension
node is a document.no setter - documentPositionContainedBy → num
-
Available on Node, provided by the Node$Typings extension
Set when other is a descendant of node.no setter - documentPositionContains → num
-
Available on Node, provided by the Node$Typings extension
Set when other is an ancestor of node.no setter - documentPositionDisconnected → num
-
Available on Node, provided by the Node$Typings extension
Set when node and other are not in the same tree.no setter - documentPositionFollowing → num
-
Available on Node, provided by the Node$Typings extension
Set when other is following node.no setter - documentPositionImplementationSpecific → num
-
Available on Node, provided by the Node$Typings extension
no setter - documentPositionPreceding → num
-
Available on Node, provided by the Node$Typings extension
Set when other is preceding node.no setter - documentTypeNode → num
-
Available on Node, provided by the Node$Typings extension
node is a doctype.no setter - elementNode → num
-
Available on Node, provided by the Node$Typings extension
node is an element.no setter - entityNode → num
-
Available on Node, provided by the Node$Typings extension
no setter - entityReferenceNode → num
-
Available on Node, provided by the Node$Typings extension
no setter - firstChild → ChildNode?
-
Available on Node, provided by the Node$Typings extension
Returns the first child.no setter - getRootNode ↔ Node Function([GetRootNodeOptions?])
-
Available on Node, provided by the Node$Typings extension
getter/setter pair - hasChildNodes ↔ bool Function()
-
Available on Node, provided by the Node$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
-
insertBefore
↔ T Function<
T extends Node>(T, [Node?]) -
Available on Node, provided by the Node$Typings extension
getter/setter pair - insertData ↔ void Function(num, String)
-
Available on CharacterData, provided by the CharacterData$Typings extension
getter/setter pair - isConnected → bool
-
Available on Node, provided by the Node$Typings extension
Returns true if node is connected and false otherwise.no setter - isDefaultNamespace ↔ bool Function([String?])
-
Available on Node, provided by the Node$Typings extension
getter/setter pair - isEqualNode ↔ bool Function([Node?])
-
Available on Node, provided by the Node$Typings extension
getter/setter pair - isSameNode ↔ bool Function([Node?])
-
Available on Node, provided by the Node$Typings extension
getter/setter pair - lastChild → ChildNode?
-
Available on Node, provided by the Node$Typings extension
Returns the last child.no setter - length → num
-
Available on CharacterData, provided by the CharacterData$Typings extension
MDN Referenceno setter - lookupNamespaceURI ↔ String? Function([String?])
-
Available on Node, provided by the Node$Typings extension
getter/setter pair - lookupPrefix ↔ String? Function([String?])
-
Available on Node, provided by the Node$Typings extension
getter/setter pair - nextElementSibling → Element?
-
Available on NonDocumentTypeChildNode, provided by the NonDocumentTypeChildNode$Typings extension
Returns the first following sibling that is an element, and null otherwise.no setter - nextSibling → ChildNode?
-
Available on Node, provided by the Node$Typings extension
Returns the next sibling.no setter - nodeName → String
-
Available on Node, provided by the Node$Typings extension
Returns a string appropriate for the type of node.no setter - nodeType → num
-
Available on Node, provided by the Node$Typings extension
Returns the type of node.no setter - nodeValue ↔ String?
-
Available on Node, provided by the Node$Typings extension
MDN Referencegetter/setter pair - normalize ↔ void Function()
-
Available on Node, provided by the Node$Typings extension
getter/setter pair - notationNode → num
-
Available on Node, provided by the Node$Typings extension
no setter - ownerDocument → Document?
-
Available on Node, provided by the Node$Typings extension
Returns the node document. Returns null for documents.no setter - ownerDocument → Document
-
Available on CharacterData, provided by the CharacterData$Typings extension
Returns the node document. Returns null for documents.no setter - parentElement → HTMLElement?
-
Available on Node, provided by the Node$Typings extension
Returns the parent element.no setter - parentNode → ParentNode?
-
Available on Node, provided by the Node$Typings extension
Returns the parent.no setter - previousElementSibling → Element?
-
Available on NonDocumentTypeChildNode, provided by the NonDocumentTypeChildNode$Typings extension
Returns the first preceding sibling that is an element, and null otherwise.no setter - previousSibling → ChildNode?
-
Available on Node, provided by the Node$Typings extension
Returns the previous sibling.no setter - processingInstructionNode → num
-
Available on Node, provided by the Node$Typings extension
node is a ProcessingInstruction node.no setter - remove ↔ void Function()
-
Available on ChildNode, provided by the ChildNode$Typings extension
getter/setter pair -
removeChild
↔ T Function<
T extends Node>(T) -
Available on Node, provided by the Node$Typings extension
getter/setter pair - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
replaceChild
↔ T Function<
T extends Node>(Node, T) -
Available on Node, provided by the Node$Typings extension
getter/setter pair - replaceData ↔ void Function(num, num, String)
-
Available on CharacterData, provided by the CharacterData$Typings extension
getter/setter pair - replaceWith ↔ void Function([Iterable?])
-
Available on ChildNode, provided by the ChildNode$Typings extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- substringData ↔ String Function(num, num)
-
Available on CharacterData, provided by the CharacterData$Typings extension
getter/setter pair - textContent ↔ String?
-
Available on Node, provided by the Node$Typings extension
MDN Referencegetter/setter pair - textNode → num
-
Available on Node, provided by the Node$Typings extension
node is a Text node.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited