Create an html5 page.
Make sure you have the script from remysharp.com/2009/01/07/html5-enabling-script/ added so that IE wi
Does the HTML5 shiv handle innerHTML
? IE very likely treats innerHTML
differently than DOM methods like createElement
, and reading the jQuery source (which I recommend), it seems your code is triggering innerHTML
instead of the DOM methods. You might try rewriting as
(which at first glance should trigger DOM methods in the cleanup process) and see if it behaves differently. If so, you've identified a bug in jQuery and a limitation of the HTML5 shiv. If not, at least it's one possibility to cross off.