Re: node.insertBefore( child )

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 UTC