MutationRecord class

A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback.

MDN Reference

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

MutationRecord.new()
factory

Properties

addedNodes NodeList

Available on MutationRecord, provided by the MutationRecord$Typings extension

Return the nodes added and removed respectively.
no setter
attributeName String?

Available on MutationRecord, provided by the MutationRecord$Typings extension

Returns the local name of the changed attribute, and null otherwise.
no setter
attributeNamespace String?

Available on MutationRecord, provided by the MutationRecord$Typings extension

Returns the namespace of the changed attribute, and null otherwise.
no setter
hashCode int
The hash code for this object.
no setterinherited
nextSibling Node?

Available on MutationRecord, provided by the MutationRecord$Typings extension

Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
no setter
oldValue String?

Available on MutationRecord, provided by the MutationRecord$Typings extension

The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.
no setter
previousSibling Node?

Available on MutationRecord, provided by the MutationRecord$Typings extension

Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
no setter
removedNodes NodeList

Available on MutationRecord, provided by the MutationRecord$Typings extension

Return the nodes added and removed respectively.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target Node

Available on MutationRecord, provided by the MutationRecord$Typings extension

Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.
no setter
type MutationRecordType

Available on MutationRecord, provided by the MutationRecord$Typings extension

Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes.
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