From 7aa478d6fffc5e164a200abb36a1ad3c7bc113ff Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Wed, 2 Aug 2023 10:35:30 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06562=20:bulb:=20Fix=20comment=20Thanks?= =?UTF-8?q?=20@Molkobain=20!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup/itopdesignformat.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/itopdesignformat.class.inc.php b/setup/itopdesignformat.class.inc.php index 6bb760848..16bd70807 100644 --- a/setup/itopdesignformat.class.inc.php +++ b/setup/itopdesignformat.class.inc.php @@ -799,7 +799,7 @@ class iTopDesignFormat foreach ($oNodeList as $oNode) { $sCode = $oNode->textContent; // N°6562 textContent is readonly, see https://www.php.net/manual/en/class.domnode.php#95545 -// $oNode->textContent = ''; + // $oNode->textContent = ''; // N°6562 to update text node content we must use the node methods ! $oNode->removeChild($oNode->firstChild); $oCodeNode = $oNode->ownerDocument->createElement("code", $sCode); @@ -893,7 +893,7 @@ class iTopDesignFormat } // N°6562 textContent is readonly, see https://www.php.net/manual/en/class.domnode.php#95545 -// $oNode->textContent = $sCode; + // $oNode->textContent = $sCode; // N°6562 to update text node content we must use the node methods ! $oTextContentNode = new DOMText($sCode); $oNode->appendChild($oTextContentNode);