mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°6562 💡 Fix comment
Thanks @Molkobain !
This commit is contained in:
@@ -799,7 +799,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);
|
||||||
@@ -893,7 +893,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);
|
||||||
|
|||||||
Reference in New Issue
Block a user