Element Traversal Specification just became a W3C Candidate Recommendation.

No more while(elt && elt.nodeType != Node.ELEMENT_NODE) elt = elt.nextSibling; !!! I do prefer the new elt = elt.nextElementSibling;

Implement it, use it, love it !!!

Note: I only regret nextElementSibling and previousElementSibling are not available on all nodes instead of only element nodes...