Bug Tracker

Opened 15 years ago

Closed 13 years ago

#2815 closed bug (fixed)

remove element from XML doc broken & a solution

Reported by: xyplex64 Owned by:
Priority: minor Milestone: 1.2.4
Component: event Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:


When trying to call remove on an element in an XML doc, IE 6 fails with "Object doesn't support this property or method". The reason it is failing is because of the "Prevent memory leaks" section. This part only applies to HTML DOM documents so I wrapped it in a conditional.

remove: function( selector ) {

if ( !selector
jQuery.filter( selector, [ this ] ).r.length ) {

if (this.documentElement == document)

Prevent memory leaks jQuery( "*", this ).add(this).each(function(){ jQuery.event.remove(this); jQuery.removeData(this);

}); if (this.parentNode)

this.parentNode.removeChild( this );

} },

Change History (2)

comment:1 Changed 13 years ago by dmethvin

Component: coreevent

comment:2 Changed 13 years ago by dmethvin

Resolution: fixed
Status: newclosed

The event rewrite in 1.4 should have fixed this.

Note: See TracTickets for help on using tickets.