recogito/recogito-client-core

IE11 broken deflation

rsimon opened this issue · 0 comments

parent.innerHTML = '';

This seems to break on IE11. Try the following approach instead.

for (var i = 0, len = wrapper.childNodes; i < len; i++) {
  wrapper.removeChild(wrapper.childNodes[i]);
}

See https://stackoverflow.com/questions/7852682/node-appendchild-not-behaving-as-expected-in-ie9-havent-checked-10