错误:' XSLTProcessor'未定义ie11(仅)

时间:2014-03-31 17:55:55

标签: javascript xslt internet-explorer-11

我收到错误“'XSLTProcessor'未定义”仅在IE 11中。 我尝试google它,但没有找到任何有用的东西。

这是我的代码:

function attchmentList(p)
{
    var sender = new XMLHttpRequest();
    sender.open("GET","Attachments.aspx?id="+p, false); 
    sender.send(null);
    oDoc = (new DOMParser()).parseFromString(sender.responseText, "text/xml");

    var oItem = oDoc.getElementsByTagName("item");
    document.getElementById("lblAttachments").innerHTML = oItem.length;


    oXSL = load("AttachmentList.xslt");

    var processor = new XSLTProcessor();
    processor.importStylesheet(oXSL);

    var o = processor.transformToDocument(oDoc);
    var CI_obj = document.getElementById("files_list");

    CI_obj.innerHTML = serialize(o);
}       

提前致谢

0 个答案:

没有答案