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

Error: Invalid CSS selector in bizstyle.js #11073

Open
phprus opened this issue Jan 2, 2023 · 0 comments
Open

Error: Invalid CSS selector in bizstyle.js #11073

phprus opened this issue Jan 2, 2023 · 0 comments

Comments

@phprus
Copy link

phprus commented Jan 2, 2023

Describe the bug

Google Chrome 108.0.5359.124:

Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': 'div.related:first ul li:not(.right) a' is not a valid selector.
    at HTMLDocument.initialiseBizStyle (file:///Users/phprus/....../build/html/_static/bizstyle.js:21:14)
initialiseBizStyle @ bizstyle.js:21

and

Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': 'div.related:last ul li:not(.right) a' is not a valid selector.

FireFox 108.0.1:

Uncaught DOMException: Document.querySelectorAll: 'div.related:first ul li:not(.right) a' is not a valid selector bizstyle.js:21
    initialiseBizStyle file:///Users/phprus/....../build/html/_static/bizstyle.js:21

How to Reproduce

$ echo "Content demonstrating the bug..." > index.rst
$ echo "html_theme = 'bizstyle'" > conf.py
$ sphinx-build -M html . _build
$ # open _build/html/index.html and see exception on browser console

Environment Information

Platform:              darwin; (macOS-12.6.2-arm64-arm-64bit)
Python version:        3.11.0 (main, Oct 25 2022, 13:57:33) [Clang 14.0.0 (clang-1400.0.29.202)])
Python implementation: CPython
Sphinx version:        5.3.0
Docutils version:      0.19
Jinja2 version:        3.1.2

Sphinx extensions

No response

Additional context

No response

@AA-Turner AA-Turner added this to the some future version milestone Apr 29, 2023
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