From b856623268447ddb9d1404348f16366d9e4281a4 Mon Sep 17 00:00:00 2001 From: sebmas Date: Tue, 27 Jan 2026 23:19:57 +0100 Subject: [PATCH] debug : error in firefox : "error parsing xml Node cannot be used in a document other than the one in which it was created" solution here : https://stackoverflow.com/a/53015232 --- js_native/lxplan_lib_builder.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js_native/lxplan_lib_builder.html b/js_native/lxplan_lib_builder.html index ef243da..40f2577 100644 --- a/js_native/lxplan_lib_builder.html +++ b/js_native/lxplan_lib_builder.html @@ -313,7 +313,7 @@ const xmlDoc = parser.parseFromString(xmlInputContent, "text/xml"); // Exécuter la requête XPath - const xpathResult = document.evaluate( + const xpathResult = xmlDoc.evaluate( xpathQuery, xmlDoc, null, @@ -348,7 +348,7 @@ const xmlDoc = parser.parseFromString(xmlInputContent, "text/xml"); // Exécuter la requête XPath - const xpathResult = document.evaluate( + const xpathResult = xmlDoc.evaluate( "/lxplot/layers/layer/shape", xmlDoc, null,