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

Re: [DOMCore] minor wording problem for Document.importNode()

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 25 Jul 2011 12:12:05 -0700
To: www-dom@w3.org, João Eiras <joao.eiras@gmail.com>
Message-ID: <op.vy6vmfcu64w2qv@annevk-macbookpro.local>
On Sat, 02 Jul 2011 20:00:21 -0700, João Eiras <joao.eiras@gmail.com>  
> Cloning Document and DocumentType using cloneNode is supported in all  
> major browsers. importNode however, should not allow Document to be  
> imported, because a document can't be owned by another. A DocumentType  
> can though.

Fixed. Apart from throwing an exception for documents importNode is  
identical to cloneNode at this point. I guess that is fine for now and  
appears to match implementations.

I also made the /deep/ argument optional.

Anne van Kesteren
Received on Monday, 25 July 2011 19:12:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:17 UTC