Maybe "document.implementation.createDocument()" and get a copy of
"createElement()" to restore the original [native code] ?

Yes this game goes nowhere... but the question was simple, restore
Object.prototype.hasOwnProperty() if overwritten.


Diego


On Sun, Aug 28, 2011 at 10:21 PM, Michael Geary <[email protected]> wrote:
> OK, you got me. You can protect yourself when I overwrite
> Object.prototype.hasOwnPrototype.
> But you didn't notice that I'm a more clever bad guy than that.
> In addition to simply overwriting that method in the current window, I also
> ran a loop that replaces that method in every existing iframe. And I
> replaced document.createElement() with my own version that overwrites the
> hasOwnPrototype method when you create a new iframe.
> Your move. :-)
> (Which leads me to my real question, what is the actual problem we're trying
> to solve?)
> -Mike
>
> --
> 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]

Reply via email to