Project

General

Profile

Actions

Bug #14093

closed

REXML doesn't implement name() and interprets nam() as an element path.

Added by jcavalieri (John Cavalieri) over 6 years ago. Updated over 6 years ago.

Status:
Rejected
Target version:
-
ruby -v:
2.4.2
[ruby-core:83702]

Description

Please see the attached script.

Considering this xml:

<a><b><name/></b></a>

The xpath /a/b/name() xpath should return the name of element a. Instead it returns the child element name.

Output:

<name/>

Files

bug_script.rb (371 Bytes) bug_script.rb script to reproduce jcavalieri (John Cavalieri), 11/08/2017 08:03 PM

Updated by hsbt (Hiroshi SHIBATA) over 6 years ago

  • Status changed from Open to Assigned
  • Assignee set to kou (Kouhei Sutou)

Updated by kou (Kouhei Sutou) over 6 years ago

  • Status changed from Assigned to Rejected

/a/b/name() is an invalid LocationPath. LocationPath is consists of Steps. You can't use name() as Step. Because name() isn't NodeTest.

Actions #3

Updated by kou (Kouhei Sutou) over 6 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0