DISQUS

DISQUS Hello! naterkane.com | the blog is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Clearing the contents of a DOM Element

Started by naterkane · 10 months ago

Sometimes we get lazy, we decide not to care about a couple of K of our user's RAM and we do silly things like replacing the content of a DOM Element with innerHTML. It's not a huge deal, in fact I'm a fan of using the AHAH method of inject pre-formatted XHTML into my document [...] ... Continue reading »

1 comment

  • Which memory loss are you referring to? I'm not aware of any "leaks" when clearing contents of an element by settings its innerHTML to an empty string.

Add New Comment

Returning? Login