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
Received on Monday, 20 February 2012 19:58:26 UTC

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