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

prefer-query-selector: Fix crash on calling without argument #906

Merged
merged 1 commit into from Nov 24, 2020

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Nov 24, 2020

Make it only check calling with one argument, ignore document.getElementsByClassName("foo", "bar"); and document.getElementById(...["id"]);

Fixes #903

@sindresorhus sindresorhus merged commit 36908da into sindresorhus:master Nov 24, 2020
@fisker fisker deleted the issue-903 branch November 24, 2020 09:01
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.

prefer-query-selector: Cannot read property 'type' of undefined
2 participants