# File lib/hpricot/traverse.rb, line 88 def swap(html) parent.altered! parent.replace_child(self, Hpricot.make(html)) end