Skip to content

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

Closed
mellelieuwes wants to merge 1 commit intophilss:mainfrom
eyra:main
Closed

Prevents Floki.Finder.find/2 from crashing#605
mellelieuwes wants to merge 1 commit intophilss:mainfrom
eyra:main

Conversation

@mellelieuwes
Copy link
Copy Markdown

See issue #604

@philss
Copy link
Copy Markdown
Owner

philss commented Dec 10, 2024

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

@philss
Copy link
Copy Markdown
Owner

philss commented Dec 10, 2024

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

@ypconstante
Copy link
Copy Markdown
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 ""?

philss added a commit that referenced this pull request Jun 15, 2025
@philss philss closed this in #631 Jun 15, 2025
philss added a commit that referenced this pull request Jun 15, 2025
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