module Hpricot::Traverse

def reparent(nodes)

def reparent(nodes)
  altered!
  [*nodes].each { |e| e.parent = self }
end