[whatwg] nextSiblingElement ?

On Wed, 23 Jan 2008, Garrett Smith wrote:
>
> nextSibling and previousSibling are useful, but not always what I want.
> 
> I usually want to get a siblingElement than a sibling, which might be a 
> text node.

One of the following drafts probably already handles your needs:

   http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#TreeWalker
   http://www.w3.org/TR/ElementTraversal/

HTH,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 24 January 2008 17:40:41 UTC