Le 21/03/2011 02:59, RobG a écrit :
Don't do that. Do not mess with host objects, you do not know how they
will deal with added properties.
Oh, and you don't have to take my word for it:
Kangax, "What’s wrong with extending the DOM", 5 April 2010
<http://perfectionkills.com/whats-wrong-with-extending-the-dom/>
AAMOF, Prototype 2 currently intends to switch from its strategy of
extending/compensating HTML element prototypes to a wrapper-based
strategy. The API remains identical, but the implementation change
eliminates a number of quirks (granted, at the cost of slightly lesser
performance in a few edge cases).
--
Christophe Porteneuve
[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]