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

This querySelector is wrong formated and raises a DOMException #529

Open
ChristianGreinke opened this issue Nov 23, 2021 · 0 comments
Open

Comments

@ChristianGreinke
Copy link

This code line creates a wrongly formated selector for document.querySelector and results into a DOMException

`td[data-day="'${day}'"]:not(.is-outside-current-month) button}`

for example day=5 gives

'td[data-day="'5'"]:not(.is-outside-current-month) button}'

which is wrong in two places the last } is too much and encasing the day placeholder with ' also brakes the selector. The right code line could look like this

`td[data-day="${day}"]:not(.is-outside-current-month) button`
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

No branches or pull requests

1 participant