Callback on DOM element attribute modification
Is anyone familiar with a method to receive notification/callback when a script is modifying a DOM attribute?
I want to write code that tracks a certain document element, and notifies me (using some callback method) if one of the other page' scripts (which are out of my control) modifies one of the element's attributes.
I can partially do that by overriding the setAttribute function, but it doesn't help me if the script accesses the attribute directly.
Thanks in advance,