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

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 UTC