[removed] Replacement for XMLSerializer.serializeToString()?

前端 未结 4 1165
被撕碎了的回忆
被撕碎了的回忆 2020-12-10 03:50

I\'m developing a website using the Seam framework and the RichFaces AJAX library (these isn\'t really all that important to the problem at hand - just some background).

4条回答
  •  难免孤独
    2020-12-10 04:40

    The suggested solution does not work for me. Here is my solution to this problem.

    I replaced the line:

    oldnode.outerHTML = new XMLSerializer().serializeToString(newnode);
    

    by this:

    if(navigator.appName.indexOf('Internet Explorer')>0){
        oldnode.outerHTML = newnode.xml
    }else{
        oldnode.outerHTML = new XMLSerializer().serializeToString(newnode); 
    }
    

提交回复
热议问题