Ticket #116 (new defect)

Opened 13 months ago

Last modified 2 months ago

Assigning to element.attributes["foo"] doesn't work

Reported by: turnip Owned by: why
Priority: major Milestone:
Component: ext/hpricot_scan Version:
Keywords: Cc:

Description

Changing an attribute like so:

element.attributes["bla"] = "hai"

doesn't seem to work in 0.6. It worked in 0.5. I will attach a small script which demonstrates this.

Change History

Changed 13 months ago by turnip

It wouldn't let me attach so here is the pastie: http://pastie.caboo.se/101978

Output is:

{"doors"=>"5"}
{"doors"=>"5"}
{"doors"=>"3"}

Changed 2 months ago by atduskgreg

I'm seeing this same bug. 10 months and no fix, eh?

Note: See TracTickets for help on using tickets.