Set removal of child nodes in clearElement.

This change to clear element ensures that previously attached child elements are still held in memory in IE based browsers.

In the previous implementation IE browsers would also clear child elements from memory.