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

xPath helper doesn't return result when XPath expression returns a single string item #2696

Closed
tomakehurst opened this issue Apr 25, 2024 · 0 comments
Assignees
Labels

Comments

@tomakehurst
Copy link
Member

Proposal

Expressions that return a single string node, but the xPath helper expects a collection and currently treats anything else as an invalid expression.

Reproduction steps

xPath expressions like local-name(/*/*/*[1]) trigger this issue.

References

No response

@dieppa dieppa closed this as completed in 7bdcda8 May 20, 2024
dieppa added a commit that referenced this issue May 20, 2024
Fixes #2696 - xPath helper returns error when result is primitive value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants