This commit is contained in:
Jeremy Benoist
2015-08-24 11:10:54 +02:00
parent 908a49824f
commit c5a4a490e1
2 changed files with 37 additions and 39 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ class JSLikeHTMLElement extends \DOMElement
{
if ($name == 'innerHTML') {
// first, empty the element
for ($x = $this->childNodes->length - 1; $x >= 0; $x--) {
for ($x = $this->childNodes->length - 1; $x >= 0; --$x) {
$this->removeChild($this->childNodes->item($x));
}
// $value holds our new inner HTML