Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to tell if DOM was modified, and which part?

Are there any practical ways to tell what part of the DOM was modified if you know that it will be modified?

I am writing a plugin that will be running along with javascript that i did not write. an event will be triggered before DOM is modified, and one event will be triggered after the modification. It is my job to decide what was changed. is this possible, and if so what is the least horrible way to do this?

like image 801
mkoryak Avatar asked Mar 24 '10 17:03

mkoryak


1 Answers

Depending on the browser support you need, you may be able to use DOM mutation events.

like image 188
Annie Avatar answered Sep 28 '22 13:09

Annie