--TEST--
Reconciliation of elements
--EXTENSIONS--
dom
--FILE--
bar
XML);
$root = $dom->documentElement;
$a_child = $dom->getElementsByTagName("a:child")[0];
$root->append($a_child);
echo $dom->saveXml(), "\n";
echo "---\n";
// Trigger reconciliation via detach logic in ext/libxml
$root->remove();
unset($root);
echo $dom->saveXml($a_child), "\n";
?>
--EXPECT--
bar
---
bar