What is the state of cross-browser support for MOM MOM observers?

I googled but could not find the answer.

Is cross-browser compatible for this feature?

If someone wants to know the answer, here it is: Mutation observers versus browser mutation / accessibility events .

+10
javascript dom html5 mutation-observers
Jun 10 2018-12-12T00:
source share
2 answers

This function (DOM mutation) works with Chrome 18. You can see more details here: http://updates.html5rocks.com/2012/02/Detect-DOM-changes-with-Mutation-Observers

If you want to test "any" HTML5 feature and browsers that support it: http://caniuse.com/ is the place. Another great source: http://html5please.com/

+6
Jun 10 2018-12-12T00:
source share

Ido Green provided the answer, but for clarity, I will post relevant fragments of related documents here.

https://developer.mozilla.org/en-US/docs/DOM/Mutation_events

DOM mutation events are now deprecated.

Mutation events are marked as obsolete in the DOM Events specification because the design of the API is wrong (see details in the message "Replacing DOM mutation events: history so far / existing consensus points" in public-webapps).

The practical reasons to avoid mutational events are performance issues and cross-browser support.

They are replaced by DOM Mutation Observers.

https://developer.mozilla.org/en-US/docs/DOM/MutationObserver

Mutation Observer provides developers with the ability to respond to changes in the DOM. It is intended to replace mutation events defined in the DOM3 Events specification.

+10
Jun 10 2018-12-12T00:
source share



All Articles