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 unicode support on bootstrap v5 #87

Closed
minghu6 opened this issue Nov 4, 2022 · 1 comment
Closed

Broken unicode support on bootstrap v5 #87

minghu6 opened this issue Nov 4, 2022 · 1 comment

Comments

@minghu6
Copy link

minghu6 commented Nov 4, 2022

When I switch to bootstrap5 (using https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.bundle.min.js) according to the manual
found:

Uncaught DOMException: Failed to execute 'querySelector' on 'Element': '#%E5%89%8D%E8%A8%80' is not a valid selector.
    at Object.findOne (https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.bundle.min.js:6:9928)
    at bn._initializeTargetsAndObservables (https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.bundle.min.js:6:73144)
    at bn.refresh (https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.bundle.min.js:6:71396)
    at new bn (https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.bundle.min.js:6:71269)
    at bn.getOrCreateInstance (https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.bundle.min.js:6:8197)
    at https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.bundle.min.js:6:74198
    at i (https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.bundle.min.js:6:4253)

#%E5%89%8D%E8%A8%80 is just my first heading of the nav. It's #前言

And when I rollback the setting and source to bootstrap4, all is ok.

@afeld
Copy link
Owner

afeld commented Nov 5, 2022

Sorry to hear about the trouble; sounds like this is a Bootstrap issue rather than a bootstrap-toc one. twbs/bootstrap#36939 looks like it may be the issue to follow. Good luck!

@afeld afeld closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2022
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

2 participants