I need to somehow catch an event when the data is being read from the DOM. For instance, textarea.value, div.innerHTML and etc. I tried somehow override these prototype properties, but with no success, it’s not that simple like overriding prototype methods.
Did anyone encounter this problem and find solution? Any help would be appreciated!
OK, so I found this interesting article by John Resig which suggests it can be done. I put together this fiddle as a test and it seems to work, however I haven’t tried extending this for use on DOM object properties yet. Also, I’m not sure quite how cross-browser it is, but maybe it could help give you some ideas to explore?