W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2006

Re: insertAfter

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Tue, 05 Sep 2006 01:29:34 -0500
Message-ID: <44FD194E.9020004@mit.edu>
To: Joao Eiras <joao.eiras@gmail.com>
CC: www-dom@w3.org

Joao Eiras wrote:
> This isn't quite correct. There can be no nextSibling.

That's fine.  foo.insertBefore(bar, null) does the same thing as 
foo.appendChild(bar).  See 
(and DOM2 Core has identical language):

   "Inserts the node newChild before the existing child node refChild.
    If refChild is null, insert newChild at the end of the list of children."

Received on Tuesday, 5 September 2006 06:29:42 UTC

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