Handle the state of an element in the document.