Skip to content

Scrollspy creates an invalid query selector #39198

@ctron

Description

@ctron

Prerequisites

Describe the issue

Having the scrollspy and and a link to a matrix account, in the form of https://matrix.to/#/@ctron:dentrassi.de or https://matrix.to/#%2F%40ctron%3Adentrassi.de causes and exception:

Uncaught DOMException: Element.querySelector: '#%2F%40ctron%3Adentrassi.de' is not a valid selector

Reduced test cases

https://codepen.io/julien-deramond/pen/qBLPYBd

  • Add the scrollspy
  • Add a link to href="https://matrix.to/#/@ctron:dentrassi.de"

What operating system(s) are you seeing the problem on?

Linux

What browser(s) are you seeing the problem on?

Firefox

What version of Bootstrap are you using?

5.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions