--TEST--
Serialize element choose nearest prefix if unqualified name
--EXTENSIONS--
dom
--FILE--
');
echo $dom->saveXml(), "\n";
$dom = Dom\XMLDocument::createFromString('');
$root = $dom->documentElement;
$child2 = $root->ownerDocument->createElementNS('u1', 'child2');
$root->firstChild->appendChild($child2);
echo $dom->saveXml(), "\n";
?>
--EXPECT--