UI Architect,
since 'innerHTML' is a property and not a method like 'appendChild'
you have to setup a customized property getter/setter for it.
I suggest you have a look at this Microsoft document:
http://msdn.microsoft.com/en-us/library/dd229916%28v=vs.85%29.aspx
this document gives examples on how you might want to do it for 'innerHTML'.
Remember that this will not work in IE6-7 and probably there are quirks in IE8.
This works in any other current browser including IE9.
Have fun,
Diego
On Fri, Aug 12, 2011 at 12:50 AM, UI Architect
<info%[email protected]> wrote:
> Like I can override appendChild of any element through
> Element.prototype.appendChild, how can the innerHTML be overridden?
>
> --
> To view archived discussions from the original JSMentors Mailman list:
> http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here:
> http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]
>
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]