Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slash lost with parent nodes #97

Closed
pulver opened this issue May 26, 2023 · 0 comments
Closed

Slash lost with parent nodes #97

pulver opened this issue May 26, 2023 · 0 comments

Comments

@pulver
Copy link
Contributor

pulver commented May 26, 2023

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/..

@kou kou closed this as completed in 399e83d May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant