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

Infinite loop with specific selector #48

Closed
olivier-m opened this issue May 13, 2020 · 2 comments
Closed

Infinite loop with specific selector #48

olivier-m opened this issue May 13, 2020 · 2 comments
Labels

Comments

@olivier-m
Copy link

Hi, thanks for your library. It works very well, except for a bug I found.
With the selector (//p//time//ancestor::p[1])[starts-with(normalize-space(.), 'Published on ')] the CPU and memory go to the roof. There's likely an infinite loop somewhere. I've been trying to find a fix but couldn't manage.
Here's a file to reproduce the issue.
xpath.txt

@zhengchun
Copy link
Contributor

@olivier-m
Copy link
Author

Splendid! Thanks 🙂

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