Aside outline is not rendered
Akaiamerin opened this issue · comments
Akaiamerin commented
Describe the bug
Uncaught (in promise) DOMException: Failed to execute 'querySelectorAll' on 'Document': '.VPDoc :where(h1,h2,h3,h4,h5,h6)' is not a valid selector.
at getHeaders (http://localhost:5173/@fs/E:/vitepress/node_modules/vitepress/dist/client/theme-default/composables/outline.js?v=f971accd:16:21)
at http://localhost:5173/@fs/E:/vitepress/node_modules/vitepress/dist/client/theme-default/composables/local-nav.js?v=f971accd:12:25
at http://localhost:5173/@fs/E:/vitepress/node_modules/vitepress/dist/client/app/components/Content.js?v=f971accd:4:62
at Array.forEach (<anonymous>)
at runCbs (http://localhost:5173/@fs/E:/vitepress/node_modules/vitepress/dist/client/app/components/Content.js?v=f971accd:4:46)
at callWithErrorHandling (http://localhost:5173/@fs/E:/vitepress/.vitepress/cache/deps/chunk-5QLTCEDZ.js?v=f971accd:1659:19)
at callWithAsyncErrorHandling (http://localhost:5173/@fs/E:/vitepress/.vitepress/cache/deps/chunk-5QLTCEDZ.js?v=f971accd:1666:17)
at invokeVNodeHook (http://localhost:5173/@fs/E:/vitepress/.vitepress/cache/deps/chunk-5QLTCEDZ.js?v=f971accd:8880:3)
at Array.<anonymous> (http://localhost:5173/@fs/E:/vitepress/.vitepress/cache/deps/chunk-5QLTCEDZ.js?v=f971accd:7498:19)
at flushPostFlushCbs (http://localhost:5173/@fs/E:/vitepress/.vitepress/cache/deps/chunk-5QLTCEDZ.js?v=f971accd:1841:41)
Reproduction
The console on each page shows this message.
Expected behavior
Hopefully it will be considered compatible with older browsers that do not support :where
selector.
System Info
Chrome: 86.0.4240.198
Additional context
suggestion: ...document.querySelectorAll('.VPDoc h1, .VPDoc h2, .VPDoc h3, .VPDoc h4, .VPDoc h5, .VPDoc h6')
Validations
- Check if you're on the latest VitePress version.
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Divyansh Singh commented
Only Chrome/Edge >= 88, Firefox >= 78, Safari >= 14 are supported. We won't be supporting legacy browser versions.