Pitfalls and problems when using innerHTML

Dec 14 2011

Lately I've been fixing some issues in an application that updates the HTML content in response to user actions via AJAX calls to get the new HTML content and then inserting it into the HTML via innerHTML.  It's nothing that anyone would consider rocket-science, but we've been getting all kinds of wierd problems when testing it in IE9.  Problems that we don't see at all in Firefox, Safari, Chrome or even IE8.