Watch for changes to an element’s class attribute; provides a subset of MutationObserver functionality with deeper browser support.