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

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 UTC