Ticket #105 (closed defect: worksforme)
REXML fails to conform to the XPath spec §5.7
| Reported by: | ser | Owned by: | ser |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2.0 |
| Component: | DOM | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Ruby version: | 1.8.5 | |
| Operating system: | Linux |
Description
From the XPath spec:
5.7 Text Nodes
Character data is grouped into text nodes. As much character data as possible is grouped into each text node: a text node never has an immediately following or preceding sibling that is a text node. The string-value of a text node is the character data. A text node always has at least one character of data.
Need to see if the XML spec says anything about this, but this sort of behavior makes sense; when you add text to a node, if the preceding sibling is a text node, they should be joined.
Change History
Note: See
TracTickets for help on using
tickets.
