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

Re: node.insertBefore( child )

From: Philippe Le Hegaret <plh@w3.org>
Date: Mon, 05 Jan 2004 14:22:55 -0500
To: Chris Moschini <cmoschini@myrealbox.com>
Cc: WWW DOM <www-dom@w3.org>
Message-Id: <1073330574.28170.32.camel@jfouffa.w3.org>

On Wed, 2003-12-03 at 13:34, Chris Moschini wrote:
> As long as we're on the subject of .insertBefore()
> 
> Why does this method, when no second argument is specified, append the child? .appendChild already does this - why not make .insertBefore() insert at the beginning by default?

This is a Level 1 change and would break existing DOM implementations,
so it can't be done.

Philippe
Received on Monday, 5 January 2004 14:22:56 GMT

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