nwsapi icon indicating copy to clipboard operation
nwsapi copied to clipboard

Fast CSS Selectors API Engine

Results 48 nwsapi issues
Sort by recently updated
recently updated
newest added

Parsing a selector of the following kind: ```css [attribute="value"]:has(...) ``` fails with a `SyntaxError` like this: ```bash SyntaxError: missing ) after argument list ``` The error can be tracked down...

I noticed a similar regression as #108, one test using react-testing-library (→ jsdom) started failing with ``` SyntaxError: ':focus-visible' is not a valid selector at emit (node_modules/nwsapi/src/nwsapi.js:557:17) at compileSelector (node_modules/nwsapi/src/nwsapi.js:1288:11)...

```js import { JSDOM } from 'jsdom' const doc = new JSDOM(` `).window.document doc.querySelector('.js-sns-icon-container ~ h2 ~ h2 ~ .spaceit_pad:not(.js-sns-icon-container ~ h2 ~ h2 ~ h2 ~ .spaceit_pad)') ``` throws...

Websites not working: - **** responds with a `403 Forbidden` error: _You don't have permission to access this resource._ https://github.com/dperini/nwsapi/blob/17abd7e36d4c099f7e51a14b372c5e5b42a2b914/package.json#L5 - **** responds with a `404 Not Found` error: _There...

Hi there, As a `jsdom` dependency, `nwsapi` has gone from `2.2.2` to `2.2.7`. We began to have JEST+RTL failures since the `has` pseudo-class is broken. Some local testing with pnpm...

CSS selectors may include special characters and they will remain valid selectors ```js document.querySelector(":not(#\\9)") // this works ``` However `nwsapi` fails while trying to parse the same selector ```js NW.Dom.match(":not(#\\9)");...

Minimal example that breaks in the latest nwsapi (I have downloaded the `nwsapi.js` file from github today): ```html test nwsapi @media (min-width: 768px) { .md\:p-4 { padding: 1rem; } }...

The following selector throws an error using `nwsapi`, but not in a web browser: ```css button:not(.k-dropdownlist > .k-button):not(.k-colorpicker > .k-button) ``` This selector is used by Kendo UI, a commercial...

Hey nwsapi team 👋 In our company we highly rely on JSDom(which seem to be using `nwsapi` for selectors resolution) and when doing the package resolution, we have realized that...