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 .
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/
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.
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.Short reviewMore detailed discussionScreencast by Chromium developer Rafael WeinsteinMutation Summary LibraryDOM4 specification that defines the MutationObserver interface
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.
MutationObserver