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

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

From: David Flanagan <dflanagan@mozilla.com>
Date: Wed, 29 Jun 2011 15:08:38 -0700
Message-ID: <4E0BA266.9010801@mozilla.com>
To: www-dom@w3.org
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.

     David
Received on Wednesday, 29 June 2011 22:09:17 GMT

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