Skip to content

Commit

Permalink
Improve xml-prune scriptlet
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Dec 22, 2023
1 parent a770ed9 commit d7063a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/resources/scriptlets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit d7063a0

Please sign in to comment.