X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=php5%2Fxml-template.php;h=9b89e93ff3dfef229a62117c19b6e30c1f41b98f;hb=d7c5342ecfee59408ef3c410e40ac9502ebd0077;hp=43b8b577c264513db1b70f5825fdc3b0f5d90338;hpb=13fb5825f2cef59f70b8ad7518a460a3e43c4f41;p=xml-template diff --git a/php5/xml-template.php b/php5/xml-template.php index 43b8b57..9b89e93 100644 --- a/php5/xml-template.php +++ b/php5/xml-template.php @@ -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