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

Re: Behavior of namespace during appendChild

From: Gerwin Jansen <gjansen@cordys.com>
Date: Tue, 1 Nov 2011 16:57:05 +0100
Message-ID: <CA+7yE8J8-eT4+pu_jK1mnrtT_RO8=NLxdj-5O+ovdHY-1dFT0Q@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>, Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: www-dom@w3.org
Hi Boris, Bjoern,

Thanks for your replies, it clears my mind.

But now a next doubt pops up in my mind:
Is there a difference in a node X created with namespace "" and a node
Y created with namespace NULL?
If yes, what is the difference?
If no, should X.isEqualNode(Y) return true?

Regards,
Gerwin

On Tue, Nov 1, 2011 at 03:04, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>
> On 10/31/11 10:05 AM, Gerwin Jansen wrote:
>>
>> 1) What should be the result of appending 'child' in
>> <root><child/></root>  to<newparent xmlns="q"/>  ?
>
> The namespace of a node does not change as a result of being moved around in the DOM.
>
> Does that help?
>
> -Boris
>
Received on Tuesday, 1 November 2011 15:58:10 GMT

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