dom vs. innerHTML
November 25th, 2002 by Dylan
A good summary and debate of using dom standards vs. innerHTML by Tim Scarfe and Alex Russell. In my coding practices, I use dom compliant methods. I do tend to use innerHTML for debugging purposes. For example, if I want to see what a method is doing to a dom structure, I’ll often do a quick alert(‘document.body.innerHTML’); . I seem to see innerHTML as good enough for a quick test, but not for production.