You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there! Firstly thank you for the work you do on this project!
I'm currently using a package called focusable-selectors which provides an array of selectors for grabbing all focusable HTML elements. I was previously locked to using nwsapi v2.2.2 because I was getting a "not valid selector" syntax error but recently updated to the most recent version used by jsdom nswapi v2.2.12 and am now getting this syntax error:
Essentially the problem was resolved by removing a complex selector from specifically three array items (note: I removed the selectors that work as expected):
The interesting thing is that in the array, there are many selectors that use the ${notInert}${notNegTabIndex}${notDisabled} chained selectors and do not produce a syntax error, only the button, [contenteditable] and [tabindex] do.
Temporary solution
The temporary solution I'm using to resolve my issue was to simply remove this portion in the notInert const: :not([inert] *).
The text was updated successfully, but these errors were encountered:
Hello there! Firstly thank you for the work you do on this project!
I'm currently using a package called focusable-selectors which provides an array of selectors for grabbing all focusable HTML elements. I was previously locked to using
nwsapi v2.2.2
because I was getting a "not valid selector" syntax error but recently updated to the most recent version used by jsdomnswapi v2.2.12
and am now getting this syntax error:Here's a discussion about the issue here for some more context: KittyGiraudel/focusable-selectors#17
Essentially the problem was resolved by removing a complex selector from specifically three array items (note: I removed the selectors that work as expected):
Source
The interesting thing is that in the array, there are many selectors that use the
${notInert}${notNegTabIndex}${notDisabled}
chained selectors and do not produce a syntax error, only thebutton
,[contenteditable]
and[tabindex]
do.Temporary solution
The temporary solution I'm using to resolve my issue was to simply remove this portion in the
notInert
const::not([inert] *)
.The text was updated successfully, but these errors were encountered: