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

Reply via email to