--TEST--
Default namespace move
--EXTENSIONS--
dom
--FILE--
appendChild($dom->createElementNS('urn:a', 'foo:bar'));
$child = $root->appendChild($dom->createElementNS('urn:a', 'foo:baz'));
$child->setAttributeNS("urn:b", "foo:attr", "value");
$root->remove();
$dom->appendChild($child);
echo $dom->saveXml(), "\n";
$dom2 = Dom\XMLDocument::createEmpty();
$child = $dom2->importNode($child, true);
$dom2->appendChild($child);
echo $dom2->saveXml(), "\n";
?>
--EXPECT--