Ticket #146 (new defect)

Opened 6 months ago

Setting name only affects the start tag

Reported by: mdaines Owned by: why
Priority: minor Milestone:
Component: lib/hpricot Version:
Keywords: Cc:

Description

Using an element's name setter seems to only change the start tag:

doc = Hpricot("blah <p>blah</p> blah")
=> #<Hpricot::Doc "blah " {elem <p> "blah" </p>} " blah">

>> doc.at("p").name = "blockquote"
=> "blockquote"

>> doc
=> #<Hpricot::Doc "blah " {elem <blockquote> "blah" </p>} " blah">
Note: See TracTickets for help on using tickets.