-
Notifications
You must be signed in to change notification settings - Fork 58
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
jsdom issue: 'slot):not([inert]' is not a valid selector #982
Comments
Can confirm. I have it in a Nuxt3 project, where we use focus-trap, which uses tabbable |
looks like it relates to dperini/nwsapi#83 |
@thumbsupep Thanks for bringing this to my attention. I replied on that issue. I'll see if I can add an override to tabbable's package.json to pin nswapi to v2.2.2 for now until they fix the issue. |
Fixes #982 Tested locally by cloning this repo and then: ``` $ rm package-lock.json $ npm install # regenerates package-lock.json $ npm test # fails because of nwsapi issues post-v2.2.2 # edit package.json to add override clause $ npm install # results in [email protected] $ npm test # succeeds ```
@all-contributors add @thumbsupep for test |
I've put up a pull request to add @thumbsupep! 🎉 |
@thumbsupep |
@thumbsupep @sbeugen There is a proposal over on dperini/nwsapi#83 to modify the Regex that seemed to be the original problem here. But today, while trying to verify the proposed Regex changes there, I followed these steps again and could not reproduce the original issue:
Originally, Could one of you please try your original steps but with the latest version of tabbable (and its dependencies) -- making sure to remove the override from package.json before |
If you regenerate package-lock and run tabbable's unit tests, you get the error
SyntaxError: 'slot):not([inert]' is not a valid selector
I've narrowed this down to the update of one of jsdom's dependencies:
[email protected]
to[email protected]
This breaks unit tests for any consumers of tabbable who install latest and use jsdom.
I'm not sure if the fix is re-writing the
[tabindex]:not(slot):not([inert])
selector, or if this is a bug that nwsapi needs to fix. Please advise.The text was updated successfully, but these errors were encountered: