How do I take a string and create an html fragment with it in IE. This works fine in non-ie browsers.
var str = "<div>Foo</div>";
var range = document.createRange();
var frag = range.createContextualFragment(str);
var e = document.getElementById("element");
e.appendChild(frag);