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.

Received on Monday, 5 January 2004 14:22:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:12 UTC