mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Merge remote-tracking branch 'origin/support/3.1' into develop
This commit is contained in:
@@ -995,7 +995,9 @@ class iTopDesignFormat
|
||||
// N°6562 textContent is readonly, see https://www.php.net/manual/en/class.domnode.php#95545
|
||||
// $oNode->textContent = $sCode;
|
||||
// N°6562 to update text node content we must use the node methods !
|
||||
$oTextContentNode = new DOMText($sCode);
|
||||
// we are using DOMDocument::createTextNode instead of new DOMText because elements created using the constructor are read only
|
||||
// see https://www.php.net/manual/en/domelement.construct.php
|
||||
$oTextContentNode = $this->oDocument->createTextNode($sCode);
|
||||
$oNode->appendChild($oTextContentNode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user