--TEST--
Bug #55294 (DOMDocument::importNode shifts namespaces when "default" namespace exists)
--EXTENSIONS--
dom
--FILE--
EOXML
);
$bDOM = Dom\XMLDocument::createEmpty();
$node = $bDOM->importNode($aDOM->getElementsByTagNameNS('http://example.com/A', 'B')->item(0), true);
$bDOM->appendChild($node);
echo $bDOM->saveXml(), "\n";
?>
--EXPECT--