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

Re: new DOM4 insertions methods and return values

From: Ms2ger <ms2ger@gmail.com>
Date: Wed, 16 Jan 2013 10:57:23 +0100
Message-ID: <50F67983.9070405@gmail.com>
To: www-dom@w3.org
On 01/16/2013 02:52 AM, Jake Verbaten wrote:
> The older DOM mutation methods like
> Node appendChild(Node node);
> returned the node you inserted
> The newer DOM mutation methods like
> void append((Node or DOMString)... nodes);
> return void instead.
> It would be useful if append returned either the single node or a
> DocumentFragment

The DocumentFragment option seems somewhat difficult to implement; 
wouldn't it require the nodes passed to append() to be children of the 
newly created DocumentFragment, as well as the node append() was called 
on? What should parentNode return on those nodes?

Received on Wednesday, 16 January 2013 09:57:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 January 2013 09:57:54 GMT