Ticket #95 (closed defect: fixed)

Opened 2 years ago

Last modified 16 months ago

xpath modify original document

Reported by: ishkan Owned by: ser
Priority: normal Milestone: 3.1.8
Component: DOM Version: 3.1.3
Severity: normal Keywords:
Cc: Ruby version: 1.8.4
Operating system: Linux

Description

System:
ruby -vrrexml/rexml -e 'p REXML::Version,PLATFORM'
ruby 1.8.4 (2005-12-24) [i386-freebsd6]
"3.1.3"
"i386-freebsd6"

Code:

testd = Document.new "<a><b><c/><c/><c/></b></a>"
puts testd
puts testd.elements["//c[2]"].xpath
puts testd

Output:

<a><b><c/><c/><c/></b></a>
/a/b/c[2]
<a><b><c/><c[2]/><c/></b></a>

Change History

Changed 2 years ago by ishkan

  • ruby_version changed from 1.8.5 to 1.8.4
  • version changed from 3.1.4 to 3.1.3

Changed 16 months ago by ser

  • status changed from new to assigned
  • milestone set to 3.1.8

Changed 16 months ago by ser

  • status changed from assigned to closed
  • resolution set to fixed

Fixed by an earlier bugfix that was released in milestone:3.1.7. Added a unit test in changeset:1276.

Note: See TracTickets for help on using tickets.