W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Re: comment on Element Traversal Spec

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Wed, 13 Aug 2008 19:26:36 +0300
Message-ID: <48A30B3C.30807@helsinki.fi>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
CC: Webapps <public-webapps@w3.org>

Daniel Glazman wrote:
> Hi there,
> I only discover today that it's a pity nextElementSibling and
> previousElementSibling are not available on all nodes, but
> only on Element nodes.
> I can see tons of use cases for such an extension, and I think
> it should already be listed for a v2 of the spec.
> (very sorry I did not catch that earlier...)
> </Daniel>
On all nodes? Doesn't make sense to have nextElementSibling on a #document or #attribute or
#documentFragments etc.
Perhaps those could be available on #text nodes, though, even in that case when node is under
attribute, next/previousElementSibling would be a bit strange.
Received on Wednesday, 13 August 2008 16:27:13 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:11 UTC