W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2012

Re: Default value of cloneNode() parameter

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 20 Feb 2012 20:57:52 +0100
To: "Aryeh Gregor" <ayg@aryeh.name>
Cc: "Alexey Proskuryakov" <ap@webkit.org>, Ms2ger <ms2ger@gmail.com>, "Adam Barth" <w3c@adambarth.com>, www-dom@w3.org
Message-ID: <op.v9ztqqgp64w2qv@annevk-macbookpro.local>
On Mon, 20 Feb 2012 19:52:52 +0100, Aryeh Gregor <ayg@aryeh.name> wrote:
> You mean cloneNode() doesn't take a document as a parameter?

No, I meant that cloneNode() clones all nodes, where as importNode() does  
not clone document objects but does clone everything else. That difference  
is mostly artificial though.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Monday, 20 February 2012 19:58:26 GMT

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