BLOB URL を作成し、この URL を iframe の場所に割り当てます。Firefox と Chrome では問題なく動作しますが、IE10 では BLOB の URL の内容が iframe に表示されません。IE10 デバッガーでは、BLOB URL が問題なく作成されていることがわかります。
var test =
{
init: function()
{
var parts = ["<html><body>test</body></html>"];
var myBlob = new Blob(parts, {"type":"text\html"});
var blobUrl = URL.createObjectURL(myBlob);
document.getElementById("test").contentWindow.location = blobUrl;
}
}
window.addEventListener("DOMContentLoaded", test.init, true);
何が問題なのですか?