On Mar 21, 11:50 am, RobG <[email protected]> wrote:
> On Mar 21, 5:17 am, Jarek Foksa <[email protected]> wrote:
>
> > I do a lot of operations on objects retrieved by querySelector() and
> > simillar DOM methods, so I thought it would be nice to extend the
> > built-in Element object with some useful methods and properties.
>
> 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/>

--
Rob

-- 
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