W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2011

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

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 30 Jun 2011 17:32:26 +0200
To: www-dom@w3.org, "David Flanagan" <dflanagan@mozilla.com>
Message-ID: <op.vxwasclc64w2qv@anne-van-kesterens-macbook-pro.local>
On Thu, 30 Jun 2011 00:08:38 +0200, David Flanagan <dflanagan@mozilla.com>  
wrote:
> The spec current says this about the importNode() method:
>
>> The |importNode(node, deep)| method must return a clone
>> <http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#clone> of
>> node, with new ownerDocument being the context object
>> <http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#context-object>,
>> and the /clone children flag
>> <http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#clone-children-flag>/
>> set if deep is true.
> But the clone algorithm can throw a DATA_CLONE_ERR, so the "must return
> a clone" isn't, in general, possible.

Should we support cloning Document and DocumentType objects? (There's an  
"<!--XXX wrong? -->" comment in the source.)


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Thursday, 30 June 2011 15:32:59 GMT

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