Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc
New issue 27598 by gerwin84: Missing empty namespace after appendChild
http://code.google.com/p/chromium/issues/detail?id=27598
Chrome Version : 4.0.237.0
Other browsers tested:
Firefox 3.5: OK
IE 7: OK (with IE compatible javascript)
IE 8: OK (with IE compatible javascript)
Execute the following javascript:
var rootDoc = (new DOMParser()).parseFromString("<root
xmlns='http://schemas.somesite.com' />", "text/xml");
var childDoc = (new DOMParser()).parseFromString("<child />", "text/xml");
var childNode = rootDoc.adoptNode(childDoc.documentElement);
rootDoc.documentElement.appendChild(childNode);
alert((new XMLSerializer()).serializeToString(rootDoc));
What is the expected result?
<root xmlns="http://schemas.somesite.com"><child xmlns=""/></root>
What happens instead?
<root xmlns="http://schemas.somesite.com"><child /></root>
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs