class Hpricot::Elements

def search(*expr,&blk)

See Hpricot::Container::Trav.search for more.

the CSS or XPath expression +expr+. Root is assumed to be the element scanned.
Searches this list for any elements (or children of these elements) matching
def search(*expr,&blk)
  Elements[*map { |x| x.search(*expr,&blk) }.flatten.uniq]
end