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.