Ticket #161 (new defect)
Element#delete_element does not return deleted element
| Reported by: | fbuilesv | Owned by: | ser |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | DOM | Version: | 3.1.6 |
| Severity: | normal | Keywords: | |
| Cc: | Ruby version: | 1.8.6 | |
| Operating system: | Linux |
Description
According to the docs, delete_element returns the element that was returned but this is not the case. See example:
root = Document.new ""
node = REXML::Element.new("some_node")
root.add_element node
del_node = root.delete_element node
In this case del_node should equal node but it's nil.
Note: See
TracTickets for help on using
tickets.
