I'm observing that when using an HTML5 doctype (<!DOCTYPE html>)
, assigning a string containing HTML entities to a DOM object's innerHTML does not convert/render those entities on IE8 (and probably other IE versions).
document.getElementById('some-div').innerHTML = 'Doesn't work.';
Does anybody have a solution? I've come across this: http://ajaxian.com/archives/innershiv-make-innerhtml-html5-work-in-ie, but it doesn't remedy the situation. The example I give above is of an element that's already on the DOM anyways.