Interesting entry, I have the same problem (almost) ... I wonder if a test
like this could have better results:
function discardElement(element) {
var garbageBin = document.getElementById('IELeakGarbageBin');
if (!garbageBin) {
garbageBin = document.createElement('DIV');
garbageBin.id = 'IELeakGarbageBin';
garbageBin.style.display = 'none';
document.body.appendChild(garbageBin);
}
// move the element to the garbage bin
garbageBin.appendChild(element);
element.parentNode && element.parentNode.removeChild(element);
}
which is the most common DOM way to remove elements.
Regards
On Wed, Oct 29, 2008 at 4:54 PM, Chris Robinson <[EMAIL PROTECTED]> wrote:
> Hey guys and gals,
>
> I put a write up about my research up on my blog for you to look over:
> http://www.outsidethediv.com/2008/10/removechild-vs-the-garbage-bin/
>
> Let me know what you think,
> -Chris
>
> On Sat, Oct 25, 2008 at 12:02 AM, John Resig <[EMAIL PROTECTED]> wrote:
>
>> Chris -
>>
>> This was a great write-up, thank you!
>>
>> I just thought the Dev team might be interested in my findings. I
>>> plan on striping this down and writing conclusive tests and
>>> documentation over the weekend.
>>>
>>
>> Looking forward to it!
>>
>> --John
>>
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---