Issue #14093 has been updated by hsbt (Hiroshi SHIBATA).

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

----------------------------------------
Bug #14093: REXML doesn't implement name() and interprets nam() as an element path.
https://bugs.ruby-lang.org/issues/14093#change-67734

* Author: jcavalieri (John Cavalieri)
* Status: Assigned
* Priority: Normal
* Assignee: kou (Kouhei Sutou)
* Target version: 
* ruby -v: 2.4.2
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
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)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>