Hpricot 0.6 Caveat Setting Attributes
February 6th, 2008 by pyratWatch out with Hpricot 0.6 it doesnt seem to work properly with setting attributes. Use 0.5 instead.
sudo gem install hpricot -v0.5
Watch out with Hpricot 0.6 it doesnt seem to work properly with setting attributes. Use 0.5 instead.
sudo gem install hpricot -v0.5
December 4th, 2008 at 4:48 am
Check out ‘raw_attributes’ instead.
eg.
element.raw_attributes = element.attributes.merge(“src” => new_src)