]> git.sesse.net Git - xml-template/commitdiff
Be slightly more accurate wrt. PHP's bugginess.
authorsgunderson@bigfoot.com <>
Mon, 21 Apr 2008 21:53:02 +0000 (23:53 +0200)
committersgunderson@bigfoot.com <>
Mon, 21 Apr 2008 21:53:02 +0000 (23:53 +0200)
php5/xml-template.php

index 43b8b577c264513db1b70f5825fdc3b0f5d90338..9b89e93ff3dfef229a62117c19b6e30c1f41b98f 100644 (file)
@@ -154,10 +154,10 @@ function XML_Template_alternate($tag, $array, $elems)
        return $array;
 }
                
-# Ideally, this would be "return $obj->clone_node(true)". But surprise, surprise,
-# PHP is buggy (at least both PHP4 and PHP5); it removes the prefix information
-# from all attributes during a clone. IOW, we'll have to clone evverything
-# ourselves.
+# Ideally, this would be "return $obj->clone_node(true)". But surprise,
+# surprise, PHP is buggy; it does not preserve the prefix information on
+# attributes properly during a clone. (PHP4 and PHP5 are broken in different
+# ways here...) IOW, we'll have to clone everything ourselves.
 function own_clone_node($node, $doc)
 {
        // we only need these two