-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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: Element.querySelectorAll: '> .dropdown-submenu > a' is not a valid selector #3691
Comments
Thank you, I was able to confirm the issue. I've edited the title accordingly. It's possibly related to the changes made in #3649. @squidfunk could you take a look? |
Here's a small repro. Extract it, create a venv, install mkdocs, serve, and observe behavior by clicking on the Section 3 dropdown. |
Here's what's happening: the slugify function that is used by <a href="#" class="dropdown-item">Section 3</a> This selector is passed to markdown_extensions:
- toc:
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower Note that this requires to |
Oops, yes, there was another error related to the refactoring. I opened a PR which fixes the problem for the reproduction #3694, but it might still be necessary to change the slugify function to something else. |
@tomchristie do you have any plans when the fix will be released, e.g., as part of bugfix release like 1.6.1? The reported issue is hitting all users that use the default |
in 1.6.0 version, may be have a one error
mkdocs.yml file have below content
![image](https://private-user-images.githubusercontent.com/46391625/326859427-471b36f9-f522-41eb-92a4-4153dc496d44.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3MDYwODYsIm5iZiI6MTcyNTcwNTc4NiwicGF0aCI6Ii80NjM5MTYyNS8zMjY4NTk0MjctNDcxYjM2ZjktZjUyMi00MWViLTkyYTQtNDE1M2RjNDk2ZDQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDEwNDMwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEwYzU0NTZmZTBjYWY2OTM3ZWU2NDA1ZDE4N2ViNTIzZTdhOTdiMzE3MTZmYzJhOTI5NzJiNzYyMzgxYjJjYTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.QvJfyjpJ0QGEHX5hGy0lk9QXID61E8JZhLIkuIxaWPA)
However, you will find have a one error in browser
![image](https://private-user-images.githubusercontent.com/46391625/326869167-9bce2db6-bc5b-4319-b677-bf7f0365813f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3MDYwODYsIm5iZiI6MTcyNTcwNTc4NiwicGF0aCI6Ii80NjM5MTYyNS8zMjY4NjkxNjctOWJjZTJkYjYtYmM1Yi00MzE5LWI2NzctYmY3ZjAzNjU4MTNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDEwNDMwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM5ZGI5NDQ0NzM3YjgyYTJlMjgzMTdjNmM1OWMyMDE5ODM2NTBhYzQzNzIzYWIyMDA0NzMxZWEwMGVmNDZhNTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.orfZlzAqdJT5Sg9RqyISl9UDUNvWPlJNkDGkel3PUBg)
The text was updated successfully, but these errors were encountered: