Javascript – ny “on DOM change” event?

domhtmljavascriptjquery

Possible Duplicate:
Detect changes in the DOM

I need to setup an event handler, which should fire whenever something is appended/changed/removed on the DOM. This answer does not work in my case. The DOM can be modified by third party developers, and on each DOM change, we need to run our script to validate the code. The event should not fire on input/textarea/select change.

We do not target all browsers. As long as it works on Webkit (Chrome, Safari), it's good enough.

Any ideas?

Best Solution

DOM mutation events (I believe not supported in all browsers) .. see http://en.wikipedia.org/wiki/DOM_events#Common.2FW3C_events