Skip to content

Commit

Permalink
by checking that the :focus pseudo-classs is not followed by dash (fo…
Browse files Browse the repository at this point in the history
…cus[^-]), fixes #47 and #54
  • Loading branch information
dperini committed Mar 13, 2023
1 parent 626fdd9 commit 8834c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nwsapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
treestruct: '(nth(?:-last)?(?:-child|-of-type))(?:\\x28\\s?(even|odd|(?:[-+]?\\d*)(?:n\\s?[-+]?\\s?\\d*)?)\\s?(?:\\x29|$))',
// pseudo-classes not requiring parameters
locationpc: '(any-link|link|visited|target)\\b',
useraction: '(hover|active|focus|focus-within)\\b',
useraction: '(hover|active|focus[^-]|focus-visible|focus-within)\\b',
structural: '(root|empty|(?:(?:first|last|only)(?:-child|-of-type)))\\b',
inputstate: '(enabled|disabled|read-only|read-write|placeholder-shown|default)\\b',
inputvalue: '(checked|indeterminate|required|optional|valid|invalid|in-range|out-of-range)\\b',
Expand Down

0 comments on commit 8834c5e

Please sign in to comment.