W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2011

Behavior of namespace during appendChild

From: Gerwin Jansen <gjansen@cordys.com>
Date: Mon, 31 Oct 2011 15:05:46 +0100
Message-ID: <CA+7yE8LVUdGp0y_5jJ_U53959UH8bKAsLhxBehSODd4kh5OuwA@mail.gmail.com>
To: www-dom@w3.org
Hi experts,

I have a question regarding appendChild
http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-184E7107

Maybe my question is covered in this FAQ, but the answer is not clear to me.
http://www.w3.org/DOM/faq.html#namespacefixup

1) What should be the result of appending 'child' in
<root><child/></root> to <newparent xmlns="q"/> ?
a) <newparent xmlns="q"/><child/></newparent>
b) <newparent xmlns="q"/><child xmlns=""/></newparent>

2) And what should be the result of appending 'child' in
<root xmlns=""><child/></root> to <newparent xmlns="q"/> ?
a) <newparent xmlns="q"/><child/></newparent>
b) <newparent xmlns="q"/><child xmlns=""/></newparent>

Thanks in advance,
Gerwin Jansen
Received on Monday, 31 October 2011 16:16:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:08 GMT