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

Re: Older Sibling?

From: David Brownell <david-b@pacbell.net>
Date: Mon, 28 Feb 2000 14:50:05 -0800
Message-ID: <38BAFB9D.391ADBDD@pacbell.net>
To: Thomas Ashe <Thomas.Ashe@Blackbaud.com>
Cc: www-dom@w3.org
Thomas Ashe wrote:
> In looking through the DOM specs, I could not discern a way to do the
> following:
> Given two nodes of a common parent, identify which node precedes the other
> in the parent's ChildNodes nodelist.
> Is there such a creature in the current specs?

You'd basically look at the nodelist yourself.  Takes a few lines
of code -- would you seriously expect DOM to save you the work of
writing such a simple subroutine?  If so, why?

- Dave
Received on Monday, 28 February 2000 17:50:24 UTC

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