]> git.sesse.net Git - xml-template/commitdiff
Don't clean attributes in PHP anymore -- it's too broken.
authorsgunderson@bigfoot.com <>
Sat, 12 Aug 2006 19:37:02 +0000 (21:37 +0200)
committersgunderson@bigfoot.com <>
Sat, 12 Aug 2006 19:37:02 +0000 (21:37 +0200)
php/xml-template.php

index dc28a2d0040bcbc2132e123f375c50f4fe9102b2..cc98edc02bbc33a5144b6083e32146ee2cf04913 100644 (file)
@@ -42,7 +42,8 @@ function XML_Template_process($node, $obj, $clean = 1)
                                                if ($attr->namespace_uri() == 'http://template.sesse.net/' && $attr->name() == 'id') {
                                                        $id = $attr->value();
                                                        if ($clean) {
-                                                               $child->remove_attribute($attr->name());
+                                                               // FIXME: this won't work since we're not in the right namespace
+                                                               // $child->remove_attribute($attr->name());
                                                        }
                                                }
                                        }