Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: Christoph Becker Newsgroups: comp.lang.javascript Subject: Re: Who's eaten my apple and why? Date: Thu, 27 Sep 2012 13:00:11 +0200 Organization: Aioe.org NNTP Server Lines: 22 Message-ID: References: <37c94a7b-70f8-47f5-b5b8-2a1b3350de43@u19g2000yqo.googlegroups.com> NNTP-Posting-Host: q18WjmsprVG91nKEgt/hnA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.javascript:16179 Gene Wirchenko wrote: > I know he has it right. I have run both sets of code. The > question is why is it that way? He posted a reference that he claimed > explains it, but it does not do so. Stefan has already explained, that the add() method of HTMLSelectElement behaves similar to the appendChild() method of Node. This is clearly stated in the specs: : | This method is the equivalent of the appendChild method of the Node | interface if the before parameter is null. | If the newChild is already in the tree, it is first removed. I should have added this information in the first place. -- Christoph M. Becker