Skip to content

Commit

Permalink
Merge pull request #110 from fsi-open/1.2
Browse files Browse the repository at this point in the history
merge branch 1.2
  • Loading branch information
rn0 authored Jan 23, 2018
2 parents 97163cc + 2990900 commit 561ce3c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ private function validateFile(DOMDocument $dom): bool
continue;
}

foreach ($dom->getElementsByTagNameNS($xmlns->nodeValue, '*') as $elem) {
$elem->parentNode->removeChild($elem);
$domNodeList = $dom->getElementsByTagNameNS($xmlns->nodeValue, '*');
for ($i = $domNodeList->length; --$i >= 0; ) {
$element = $domNodeList->item($i);
$element->parentNode->removeChild($element);
}
}

Expand Down

0 comments on commit 561ce3c

Please sign in to comment.