--TEST--
HTMLDocument::importNode() with namespace should not shift namespaces
--EXTENSIONS--
dom
--FILE--
hello world.
test
test 2
namespace prefixed
XML);
// Note the HTMLDocument class!
$dom2 = Dom\HTMLDocument::createEmpty();
$imported = $dom2->importNode($dom->documentElement, true);
$dom2->appendChild($imported);
$body = $dom2->getElementsByTagName("body")[0];
$default_p = $body->lastElementChild;
var_dump($default_p->prefix);
var_dump($default_p->namespaceURI);
echo $dom2->saveXml();
?>
--EXPECT--
string(7) "default"
string(28) "http://www.w3.org/1999/xhtml"
hello world.
test
test 2
namespace prefixed