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

Resolve small bug with document.querySelector on empty strings #16

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

Conversation

varun-tandon
Copy link

@varun-tandon varun-tandon commented Dec 17, 2022

Hi @rakeshpai! Thanks so much for creating this library.

I was trying to use the library with my own project, and I noticed an issue where the getMinimalSelectors call may call document.querySelector on an empty string -- which causes puppeteer to crash.

I think this is a simple one line fix! Hope this helps, and please do let me know if you would prefer to make this change in a different way :)

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.

1 participant