diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index c198fb501..2015b1b2f 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -2977,6 +2977,9 @@ function xmlPrune( type === '' && thisArg.responseXML instanceof XMLDocument ) { pruneFromDoc(thisArg.responseXML); + const serializer = new XMLSerializer(); + const textout = serializer.serializeToString(thisArg.responseXML); + Object.defineProperty(thisArg, 'responseText', { value: textout }); return; } if (