Ticket #121 (new defect)
Any and all tags inside of object tags become emptyelems and bogusetags
| Reported by: | jmhodges | Owned by: | why |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | ext/hpricot_scan | Version: | |
| Keywords: | Cc: |
Description (last modified by jmhodges) (diff)
All tags nested inside of object tags are marked as emptyelems. If the tag nested inside is a param tag, we also get a bogusetag returned. This makes it very hard to sanitize input that can contain embeddings of Flash videos and the like.
ohtml = '<object><p></p></object>'
Hpricot(ohtml)
# => #<Hpricot::Doc {elem <object> {emptyelem <p>} </object>}>
phtml = '<object><param></param></object>'
Hpricot(phtml)
# => #<Hpricot::Doc {elem <object> {emptyelem <param>} {bogusetag </param>} </object>}>
Change History
Note: See
TracTickets for help on using
tickets.
