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>  
wrote:
> 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
http://annevankesteren.nl/
Received on Monday, 25 July 2011 19:12:41 GMT

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