X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=php5%2Fxml-template.php;h=46047ff8ff27730c09bdc5c91a4d91a6695b93e2;hb=8f931f29d9d4e95b793856a0f475a51c899d136d;hp=8e53452675bae110183ccc9c53ab09befc2d9a5d;hpb=016ab26637956613524017d95b1ecbf58f0d33f3;p=xml-template diff --git a/php5/xml-template.php b/php5/xml-template.php index 8e53452..46047ff 100644 --- a/php5/xml-template.php +++ b/php5/xml-template.php @@ -139,7 +139,7 @@ function XML_Template_clean($node) while ($node->childNodes->length > 0) { $child = $node->childNodes->item(0); $node->removeChild($child); - $parent->insertBefore($child, $node); + $parent->insertBefore(own_clone_node($child, $doc), $node); } $parent->removeChild($node); }