MutationRecord
A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback.
interface MutationRecord {
readonly addedNodes: NodeList;
readonly attributeName: string | null;
readonly attributeNamespace: string | null;
readonly nextSibling: Node | null;
readonly oldValue: string | null;
readonly previousSibling: Node | null;
readonly removedNodes: NodeList;
readonly target: Node;
readonly type: MutationRecordType;
}var MutationRecord: {
prototype: MutationRecord;
new (): MutationRecord;
};§Properties
§
readonly attributeName: string | null
[src]Returns the local name of the changed attribute, and null otherwise.
§
readonly attributeNamespace: string | null
[src]Returns the namespace of the changed attribute, and null otherwise.
§
readonly oldValue: string | null
[src]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.
§
readonly type: MutationRecordType
[src]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.