Merge remote-tracking branch 'origin/support/3.0' into support/3.1

This commit is contained in:
Pierre Goiffon
2023-08-02 10:39:51 +02:00

View File

@@ -893,7 +893,7 @@ class iTopDesignFormat
foreach ($oNodeList as $oNode) { foreach ($oNodeList as $oNode) {
$sCode = $oNode->textContent; $sCode = $oNode->textContent;
// N°6562 textContent is readonly, see https://www.php.net/manual/en/class.domnode.php#95545 // 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 ! // N°6562 to update text node content we must use the node methods !
$oNode->removeChild($oNode->firstChild); $oNode->removeChild($oNode->firstChild);
$oCodeNode = $oNode->ownerDocument->createElement("code", $sCode); $oCodeNode = $oNode->ownerDocument->createElement("code", $sCode);
@@ -987,7 +987,7 @@ class iTopDesignFormat
} }
// N°6562 textContent is readonly, see https://www.php.net/manual/en/class.domnode.php#95545 // 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 ! // N°6562 to update text node content we must use the node methods !
$oTextContentNode = new DOMText($sCode); $oTextContentNode = new DOMText($sCode);
$oNode->appendChild($oTextContentNode); $oNode->appendChild($oTextContentNode);