module Hpricot::Container::Trav

def preceding_siblings()

out text and comment nodes.
Find all preceding sibling elements. Like the other "sibling" methods, this weeds
def preceding_siblings() 
  sibs = parent.containers 
  si = sibs.index(self) 
  return Elements[*sibs[0...si]] 
end