GithubHelp home page GithubHelp logo

Comments (5)

dospunk avatar dospunk commented on August 30, 2024 1

I'm having the same issue with :focus-within and jsdom as well. The error stack trace does come back to nwsapi

The relevant lines of the stack trace are:

at emit (node_modules/nwsapi/src/nwsapi.js:570:17)
at compileSelector (node_modules/nwsapi/src/nwsapi.js:1310:11)
at compile (node_modules/nwsapi/src/nwsapi.js:758:16)
at match_collect (node_modules/nwsapi/src/nwsapi.js:1363:16)
at Object._matches [as match] (node_modules/nwsapi/src/nwsapi.js:1418:35)

from nwsapi.

dperini avatar dperini commented on August 30, 2024 1

@dospunk
you are correct ... reopening and working on it.
Thank you for reporting the problem.

from nwsapi.

samschurter avatar samschurter commented on August 30, 2024

I've run into problems with :focus-within as well. Perhaps the issues are related to #47 for that selector.

from nwsapi.

dperini avatar dperini commented on August 30, 2024

I have also tested a different approach to solve this issue. I used the following regular expression, slightly modified:

useraction: '(hover|active|focus[^-]|focus-within)\\b',

which enforces checking for the :focus pseudo-class not being followed by a dash and it seems it works well.

Please test in your environment and report results here.

from nwsapi.

dospunk avatar dospunk commented on August 30, 2024

I'm still getting the SyntaxError: ':focus-within' is not a valid selector error on [email protected]

Edit: Maybe this should be reopened since the fix for focus-within was reverted in 23f9e23

from nwsapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.