W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2003

C2 (Re: i18n reviews of DOM 3 Core and Load&Save)

From: Philippe Le Hegaret <plh@w3.org>
Date: 28 Aug 2003 14:45:21 -0400
To: Francois Yergeau <FYergeau@alis.com>
Cc: "'www-dom@w3.org'" <www-dom@w3.org>
Message-Id: <1062096320.23315.175.camel@jfouffa.w3.org>

On Fri, 2003-08-08 at 11:39, Francois Yergeau wrote:
> C2) Document interface, "adoptNode()" method: the fact that this does not
> throw an INVALID_CHARACTER_ERR when a 1.0 document adopts a node containing
> names not legal in 1.0 is clarified but really bizarre. Why is this
> different from importNode()?

importNode will invoke createElement in order to create the new node and
this method can throw an INVALID_CHARACTER_ERR. This is not the case for
adoptNode, which simply change the owner of the document. This explains
this difference between importNode and adoptNode.

Philippe
Received on Thursday, 28 August 2003 14:49:29 GMT

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