$attrs = $child->attributes();
if (isset($attrs)) {
foreach ($child->attributes() as $attr) {
- if ($attr->namespace_uri() == 'http://template.sesse.net/' && $attr->name() == 'id') {
+ // PHP's DOMXML module forgets the prefix information when
+ // cloning nodes, so we'll have to avoid the namespace check
+ // here, unfortunately
+ if (/* $attr->namespace_uri() == 'http://template.sesse.net/' && */ $attr->name() == 'id') {
$id = $attr->value();
if ($clean) {
// FIXME: this won't work since we're not in the right namespace