Re: comment on Element Traversal Spec

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.
-Olli

Received on Wednesday, 13 August 2008 16:27:13 UTC