Use MutationObserver to spy on the DOM

Have you ever wished that you could “listen to” changes that happen in the DOM? Of course, you have “event handlers” for this, it’s as easy as this: View the code on Gist. However, you can’t catch everything with that. Indeed, what if you want to be notified when the text or an attribute value […]