Skip to main content

Bug Tracker

Side navigation

#14214 closed bug (duplicate)

Opened August 04, 2013 06:13PM UTC

Closed December 06, 2013 05:25PM UTC

remove leaking memory in IE8

Reported by: lorenzo.dallavecchia@webratio.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc: dmethvin
Blocked by: Blocking:
Description

Calling .remove on a set of matched elements they are indeed removed from the DOM, but IE8 keeps internal references to them, leaking memory.

This is probably due to a bug in IE8 implementation of removeChild. Adding the a call to ''removeNode'' does seem to remove the leak.

node.removeNode(false);

To reproduce, copy the fiddle at http://jsfiddle.net/H3jQc/ to a local file and run it through sIEve on a computer with IE8 installed. Each time the ''Test'' button is clicked, one SPAN element is leaked.

The problem does not show in IE9 or later. jQuery versions from at least 1.7.2 to the latest 1.10.x seem to be affected.

Attachments (0)
Change History (2)

Changed September 10, 2013 08:39PM UTC by timmywil comment:1

cc: → dmethvin

I currently don't have a way to test for oldIE memory leaks on my machine. @dmethvin: do you have a way?

Changed December 06, 2013 05:25PM UTC by timmywil comment:2

resolution: → duplicate
status: newclosed

Duplicate of #14045.This is most likely related to #14045, but even if it's not, let's resolve both with the one leak ticket and possible inclusion of .removeNode().