--TEST--
Bug #47847 (importNode loses the namespace of an XML element)
--EXTENSIONS--
dom
--FILE--
XML);
$aDOM = Dom\XMLDocument::createEmpty();
$imported = $aDOM->importNode($fromdom->documentElement->firstElementChild, true);
$aDOM->appendChild($imported);
echo $aDOM->saveXml(), "\n";
var_dump($aDOM->documentElement->firstElementChild->prefix);
?>
--EXPECT--
string(2) "ns"