Ticket #101 (closed defect: fixed)
[PATCH] Fix get_elements_by_tag_name
| Reported by: | wycats | Owned by: | why |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | ext/hpricot_scan | Version: | |
| Keywords: | Cc: |
Description
In browser DOMs getElementsByTagName returns only Elements, not text nodes. This patch:
- Only selects Elements in get_elements_by_tag_name
- Adding support for get_elements_by_tag_name("*"), which is already supported by just not sending any parameter, but this brings it in line with the browser DOM APIs.
Change History
Note: See
TracTickets for help on using
tickets.
