Ticket #7 (closed defect: fixed)
<link> is always empty
| Reported by: | laudney | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | 0.5 |
| Component: | component1 | Version: | |
| Keywords: | Cc: |
Description
Hpricot always parse <link>url</link> element as empty element, both in html and xml. Example:
doc = Hpricot("<rss><channel><title>this is title</title><link>http://fake.com</link></channel></rss>")
=> #<Hpricot::Doc {elem <rss> {elem <channel> {elem <title> {text "this is title"} </title>} {emptyelem <link>} {text "http://fake.com"} {bogusetag</linklink</link>>} </channel>} </rss>}>
doc/"/rss/channel/title"
=> #<Hpricot::Elements[{elem <title> {text "this is title"} </title>}]>
doc/"/rss/channel/link"
=> #<Hpricot::Elements[{emptyelem <link>}]>
Change History
Note: See
TracTickets for help on using
tickets.
