Ticket #12172 (closed bug: duplicate)
Event binding on disconnected element causes memory leak in IE7
|Reported by:||johnhunter||Owned by:|
Creating a disconnected element and then binding an event handler to it causes all subsequent bind calls to leak their elements. When the page is unloaded references remain for every element that has a binding.
Test environment: sIEve-0.0.8 ( http://home.wanadoo.nl/jsrosman/)
Test case: http://jsfiddle.net/johnhunter/3nFL7/ (will need to run this outside of jsfiddle to avoid side effects in IE7)
Steps to reproduce:
- Save test case to local server.
- Load in sIEve.
- Reload page (or use auto-refresh)
No leaked elements detected.
The tt element is leaked along with a div (one of jQuery's support test elements)
Can also replicate this with the following:
- jquery-1.6.1 (with additional leaking support elements)
so this is not new to 1.8.
This issue may also effect IE8 but I am unable to confirm at present.