Shopify/batman — Issue #320: IE8 unknown runtime errors with innerHTML
Author: johnthethird
Created: 2012-01-30 02:27:31+00:00
State: open

In trying to make Batman play nice with IE 8, we have run into a problem demonstrated by this fiddle http://jsfiddle.net/johnthethird/Rw2hw/

The core issue is Batman uses innerHTML to do its magic, and IE8 is apparently very persnickety in what it will allow you to do. In looking at the jquery code to see how they do it [1], they catch any errors and have a fallback method of emptying the node and replacing the contents. This approach doesnt work with Batman, obviously.

(I dont have any solutions at this time but I will leave this here for any other poor souls still dealing with IE8.)

[1] https://github.com/jquery/jquery/blob/master/src/manipulation.js#L210