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
The nodes added by a mutation. Will be an empty
NodeListif no nodes were added.
The name of the changed attribute as a string, or
The namespace of the changed attribute as a string, or
The next sibling of the added or removed nodes, or
The value depends on the
attributes, it is the value of the changed attribute before the change.
characterData, it is the data of the changed node before the change.
childList, it is
The previous sibling of the added or removed nodes, or
The nodes removed by a mutation. Will be an empty
NodeListif no nodes were removed.
The node the mutation affected, depending on the
attributes, it is the element whose attribute changed.
characterData, it is the
childList, it is the node whose children changed.
A string representing the type of mutation:
attributesif the mutation was an attribute mutation,
characterDataif it was a mutation to a
childListif it was a mutation to the tree of nodes.
|DOM Standard |
BCD tables only load in the browser