A call to Hpricot::Elem#raw_attributes is built dynamically, so alterations to the returned value (a hash) will be lost.
AttributeProxy works around this by forwarding :[]= calls to the raw_attributes accessor on the element start tag.
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 98 def []=(k, v) @hpricot.stag.send(stag_attributes_method)[k] = v end
Generated with the Darkfish Rdoc Generator 2.