Skip to content

Slash lost with parent nodes #97

Description

@pulver

The following code

require 'rexml'

parsed = REXML::Parsers::XPathParser.new.parse '/a/b/..'
puts "#{parsed}"
puts ""
appreviated = REXML::Parsers::XPathParser.new.abbreviate parsed
puts "#{appreviated}"

outputs

[:document, :child, :qname, "", "a", :child, :qname, "", "b", :parent, :node]

/a/b..

The expected output of abbreviate parsed is /a/b/...

I'm not sure if the problem is with parse, abbreviate, or both.

Same problem with :self node: /a/b/..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions