diff --git a/xslt.js b/xslt.js index 518a582..7f3cb84 100644 --- a/xslt.js +++ b/xslt.js @@ -1,6 +1,7 @@ export async function xslt(xsltProcessor, realmToSurvey, derivedVals) { - let xmlSrc = realmToSurvey.cloneNode(true); + let xmlSrc = realmToSurvey; if (navigator.userAgent.indexOf("Firefox") !== -1) { + xmlSrc = xmlSrc.cloneNode(true); const outer = document.createElement('div'); outer.appendChild(xmlSrc); xmlSrc = outer; diff --git a/xslt.ts b/xslt.ts index e737180..0bccefe 100644 --- a/xslt.ts +++ b/xslt.ts @@ -1,6 +1,7 @@ export async function xslt(xsltProcessor: XSLTProcessor, realmToSurvey: Element, derivedVals: any){ - let xmlSrc = realmToSurvey.cloneNode(true) as Element; + let xmlSrc = realmToSurvey as Element; if(navigator.userAgent.indexOf("Firefox") !== -1){ + xmlSrc = xmlSrc.cloneNode(true) as Element; const outer = document.createElement('div'); outer.appendChild(xmlSrc); xmlSrc = outer;