I am a situation where I have to clone an element, read it's attributes and other parsing functionality, but now since I don't do element.parentNode.appendChild(clonedElement)
how do I delete this clone from memory?
var clonedElement = element.cloneNode();
// do some stuff with it
clonedElement = null; // is this good enough?
So yea, is the clonedElement = null;
good enough to clear it from memory?