class dom::MutationRec
sys::Obj dom::MutationRec
@Js
MutationRec represents an individual DOM mutation.
- added
-
Elem[] addedList of nodes added, or empyt list if no nodes added.
- attr
-
Str? attrName of the changed attribute, or null if no attribute was changed.
- attrNs
-
Str? attrNsNamespace of the changed attribute, or null if no attribute was changed.
- nextSibling
-
Elem? nextSiblingNext sibling of the added or removed nodes, or null if no nodes added or removed.
- oldVal
-
Str? oldValOld value, depending on
type:- For "attrs", it is the value of the changed attribute before the change
- For "charData", it is the data of the changed node before the change
- For "childList", it is null
- prevSibling
-
Elem? prevSiblingPrevious sibling of the added or removed nodes, or null if not nodes added or removed.
- removed
-
Elem[] removedList of nodes removed, or empty list if no nodes removed.
- target
-
Elem targetTarget node that mutation affected, depending on the
type:- For "attrs", it is the element whose attribute changed
- For "charData", it is the CharacterData node
- For "childList", it is the node whose children changed
- type
-
Str typeMutation type:
- "attrs" if the mutation was an attribute mutation
- "charData" if it was a mutation to a CharacterData node
- "childList" if it was a mutation to the tree of nodes