MutationObserver : Object
Constructors
Creates a new MutationObserver that will call callback when the behaviors configured by observe() change. Note that callback will be called at some time after the current script that is doing the mutation completes. The observer passed to callback is the newly created MutationObserver.
Example:
RunResults:
Instance Methods
Unhooks this observer from all targets specified in previous observe() calls.
| childList : | Boolean | Observes changes to the children of target. |
| attributes : | Boolean | Observes changes to the attributes of target. |
| characterData : | Boolean | Observes changes to the data of target. |
| subtree : | Boolean | Tells the observer to also record changes in the subtree of target |
| attributeOldValue : | Boolean | Tells the observer to provide the old value of the attribute (available in the MutationRecord.oldValue property). |
| characterDataOldValue : | Boolean | Tells the observer to provide the old value of the character data (available in the MutationRecord.oldValue property). |
| attributeFilter : | Array<String> | Tells the observer to only observe the specified attributes. |
Registers the observer to be called any time the specified options on target change. If observe() is called more than once, it will listen to changes on each target. See MutationRecord for the data provided to callback for each mutation type.
Example:
RunResults:
Returns the queued list of MutationRecords for this and clears out that list. The callback will not be called unless additional mutations occur after the call to takeRecords().