[whatwg] nextSiblingElement ?

Ian Hickson ian at hixie.ch
Thu Jan 24 17:40:41 PST 2008


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list