MutationRecord class
MutationRecord class
A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver
’s MutationCallback.
Inheritance: MutationRecord
→
DOMObject
The MutationRecord type exposes the following members:
Properties
Property | Description |
---|---|
type | 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. |
target | 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. |
added_nodes | Return the nodes added. |
removed_nodes | Return the nodes removed. |
previous_sibling | Returns the previous sibling of the added or removed nodes, or null. |
next_sibling | Return the next sibling of the added or removed nodes, or null. |
attribute_name | Returns the local name of the changed attribute, and null otherwise. |
attribute_namespace | Returns the namespace of the changed attribute, and null otherwise. |
old_value | 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. |
Methods
Method | Description |
---|---|
get_platform_type | This method is used to retrieve ECMAScript object Type. |
See Also
- module
aspose.html.dom.mutations
- class
DOMObject
- class
MutationObserver
- class
MutationRecord