Skip to main content

Bug Tracker

Side navigation

#2815 closed bug (fixed)

Opened May 07, 2008 09:51AM UTC

Closed June 22, 2010 02:46AM UTC

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(){




if (this.parentNode)

this.parentNode.removeChild( this );



Attachments (0)
Change History (2)

Changed June 20, 2010 06:46PM UTC by dmethvin comment:1

component: coreevent

Changed June 22, 2010 02:46AM UTC by dmethvin comment:2

resolution: → fixed
status: newclosed

The event rewrite in 1.4 should have fixed this.