MutationRecord

The MutationRecord is a read-only interface that represents an individual DOM mutation observed by a MutationObserver. It is the object inside the array passed to the callback of a MutationObserver.

MDN Reference

Properties

Link copied to clipboard
external val addedNodes: NodeList<*>

The MutationRecord read-only property addedNodes is a NodeList of nodes added to a target node by a mutation observed with a MutationObserver.

Link copied to clipboard
external val attributeName: String?

The MutationRecord read-only property attributeName contains the name of a changed attribute belonging to a node that is observed by a MutationObserver.

Link copied to clipboard
external val attributeNamespace: String?

The MutationRecord read-only property attributeNamespace is the namespace of the mutated attribute in the MutationRecord observed by a MutationObserver.

Link copied to clipboard
external val nextSibling: Node?

The MutationRecord read-only property nextSibling is the next sibling of an added or removed child node of the target of a MutationObserver.

Link copied to clipboard
external val oldValue: String?

The MutationRecord read-only property oldValue contains the character data or attribute value of an observed node before it was changed.

Link copied to clipboard
external val previousSibling: Node?

The MutationRecord read-only property previousSibling is the previous sibling of an added or removed child node of the target of a MutationObserver.

Link copied to clipboard
external val removedNodes: NodeList<*>

The MutationRecord read-only property removedNodes is a NodeList of nodes removed from a target node by a mutation observed with a MutationObserver.

Link copied to clipboard
external val target: Node

The MutationRecord read-only property target is the target (i.e., the mutated/changed node) of a mutation observed with a MutationObserver.

Link copied to clipboard
external val type: MutationRecordType

The MutationRecord read-only property type is the type of the MutationRecord observed by a MutationObserver.