On Mar 24, 1:43 am, Poetro <[email protected]> wrote: > jQuery adds a wrapper around callback functions, and also collects > them to data object.
It also adds a non-standard property so it can identify the element that it added the listener to (which in IE means also adding an HTML attribute). Adding non-standard properties to host objects is considered a bad idea, though HTML5 provides a mechanism with data- properties and attributes. Because of IE's inability to differentiate between DOM properties and HTML attributes, adding a property also adds an attribute. jQuery removes these extra attributes when its html() function is used, but they remain in the element's inner/outHTML properties. -- 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]
