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

Uncaught DOMException: Failed to execute 'querySelector' on 'Element': '#1-correction' is not a valid selector. #11

Open
colinwilson opened this issue Jul 27, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@colinwilson
Copy link
Owner

Issue with IDs beginning with numbers e.g. ordered lists.

Uncaught DOMException: Element.querySelector: '#1-correction' is not a valid selector
    findOne \js\src\dom\selector-engine.js:41
    _initializeTargetsAndObservables \js\src\scrollspy.js:211
    refresh \js\src\scrollspy.js:91
    _ScrollSpy \js\src\scrollspy.js:73
    getOrCreateInstance \js\src\base-component.js:65
    <anonymous> \js\src\scrollspy.js:284
    handler \js\src\dom\event-handler.js:98
    addHandler \js\src\dom\event-handler.js:184
    on \js\src\dom\event-handler.js:216
    <anonymous>\js\src\scrollspy.js:282
    <anonymous> bootstrap.js:3649

Environment:

  • Firefox & Chrome
  • Bootstrap v5.3.0 alpha 3 + incompatible

Related:

@colinwilson colinwilson added the bug Something isn't working label Jul 27, 2023
@colinwilson colinwilson self-assigned this Jul 27, 2023
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