if (!(et instanceof CSSStylableElement)) {
// Not a stylable element.
return;
}
MutationEvent mevt = (MutationEvent)evt;
if (mevt.getNewValue().equals(mevt.getPrevValue()))
return; // no change really...
Node attr = mevt.getRelatedNode();
String attrNS = attr.getNamespaceURI();
String name = ((attrNS == null) ?
attr.getNodeName() :
attr.getLocalName());