Ticket #105 (closed defect: worksforme)

Opened 16 months ago

Last modified 14 months ago

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

Changed 14 months ago by ser

  • status changed from new to closed
  • resolution set to worksforme

This actually already works properly.

Note: See TracTickets for help on using tickets.