]> git.sesse.net Git - xml-template/blobdiff - php/xml-template.php
Don't clean attributes in PHP anymore -- it's too broken.
[xml-template] / 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());
                                                        }
                                                }
                                        }