Skip to content

Comments

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

Open
varun-tandon wants to merge 1 commit intoerrorception:masterfrom
varun-tandon:master
Open

Resolve small bug with document.querySelector on empty strings#16
varun-tandon wants to merge 1 commit intoerrorception:masterfrom
varun-tandon:master

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