Mutation events
Discouraged
This feature is discouraged. Consider using MutationObserver instead. For the rationale, see:
Mutation events like DOMSubtreeModified
, DOMNodeInserted
, or DOMNodeRemoved
fire when DOM changes occur.
Learning resources on MDN
- MutationEvent
- MutationEvent: attrChange property
- MutationEvent: attrName property
- MutationEvent: initMutationEvent() method
- MutationEvent: newValue property
- MutationEvent: prevValue property
- MutationEvent: relatedNode property
Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- Firefox 1 Released on 2004-11-09
- Firefox for Android 4 Released on 2011-03-29
- Safari 1 Released on 2003-06-23
- Safari on iOS 1 Released on 2007-06-29
Specifications
- UI Events, from Web Applications Working Group (W3C).