Ticket #66 (closed defect: fixed)
Node:: index_in_parent not working correctly
| Reported by: | tobiaslidskog@… | Owned by: | ser |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1.6 |
| Component: | DOM | Version: | 2.7 |
| Severity: | normal | Keywords: | |
| Cc: | Ruby version: | 1.8.4 | |
| Operating system: | All |
Description
The documentation for index_in_parent states that "node == node.parent.elements[node.index_in_parent]". This is not true since index_in_parent calls Parent::index, which counts all children, not just elements. The attached test case will show an example of this.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
