module Hpricot::Container::Trav

def next_sibling

See Hpricot::Traverse#next_node if you need to hunt out all kinds of nodes.
By "container" node, I mean: this method does not find text nodes or comments or cdata or any of that.
Returns the container node neighboring this node to the south: just below it.
def next_sibling
  sib = parent.containers
  sib[sib.index(self) + 1] if parent
end