Skip to content

Fix invalid selector in hotkey query #34

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

Merged
merged 1 commit into from
Aug 4, 2020
Merged

Conversation

dgraham
Copy link
Contributor

@dgraham dgraham commented Aug 4, 2020

Using string concatentation with user controlled input to build a selector query results in syntax errors.

SyntaxError: Failed to execute 'querySelector' on 'Element': '[hotkey="""]' is not a valid selector.

Instead, query potential hotkey buttons and test their attribute against the event's key value.

Using string concatentation with user controlled input to build a
selector query results in syntax errors.

> SyntaxError: Failed to execute 'querySelector' on 'Element': '[hotkey="""]' is not a valid selector.

Instead, query potential hotkey buttons and test their attribute against
the event's key value.
@dgraham dgraham requested a review from a team August 4, 2020 17:06
@dgraham dgraham merged commit 4849a95 into main Aug 4, 2020
@dgraham dgraham deleted the fix-hotkey-selector branch August 4, 2020 20:11
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