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

broken querySelectorAll when the string contains new lines #1461

Open
masylum opened this issue Jun 13, 2024 · 0 comments
Open

broken querySelectorAll when the string contains new lines #1461

masylum opened this issue Jun 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@masylum
Copy link

masylum commented Jun 13, 2024

Describe the bug
When the selector contains new lines, querySelectorAll returns all sorts of things that it shouldn't.

To Reproduce

document.querySelectorAll(
  `pre, code, script, style, object, embed,
    iframe, form, input, textarea, button,
    select, option, nav`
)

and then compare with

document.querySelectorAll(
  'pre, code, script, style, object, embed, iframe, form, input, textarea, button, select, option, nav'
)

Expected behavior
it should be the same

@masylum masylum added the bug Something isn't working label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant