From 0b432fd882c852b053627ab1a31e1f101a07297a Mon Sep 17 00:00:00 2001 From: Uriel Gomez Date: Thu, 1 Aug 2024 08:34:41 -0600 Subject: [PATCH] * Node.prototype.transform - reallocated applyScripts --- xo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xo.js b/xo.js index 76bc452..eb92bf7 100644 --- a/xo.js +++ b/xo.js @@ -7566,7 +7566,6 @@ xover.modernize = async function (targetWindow) { return (xml_document || xover.xml.createDocument(``).seed()).transform(this); } let xsl = xml_document; - xover.dom.applyScripts(xsl.select(`//html:script[@fetchpriority="high"]`)); let xml = this; let result = undefined; if (!xsl/* && ((arguments || {}).callee || {}).caller != Node.prototype.transform*/) { @@ -7578,6 +7577,7 @@ xover.modernize = async function (targetWindow) { } return xml; } + xover.dom.applyScripts(xsl.select(`//html:script[@fetchpriority="high"]`)); let before_listeners = xover.listener.matches(xml, 'beforeTransform') let after_listeners = xover.listener.matches(xml, 'transform') xml.disconnect();