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

Prevents Floki.Finder.find/2 from crashing #605

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mellelieuwes
Copy link

See issue #604

@philss
Copy link
Owner

philss commented Dec 10, 2024

Makes sense to me. What do you think, @ypconstante ?

@philss
Copy link
Owner

philss commented Dec 10, 2024

BTW, thank you for the report and the fix, @mellelieuwes ! <2

@ypconstante
Copy link
Contributor

Since the function is recursive, this will probably cause us to use the expensive traversal in some cases in which we could use the fast one. I think we should handle this in the find function directly.
Is this error triggered in any case besides an empty selector ""?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants