-
Notifications
You must be signed in to change notification settings - Fork 38
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
Not a valid selector #89
Comments
Similar issue, but with 2.2.4. The selector |
We've seen the same issue - we've had to force resolution to 2.2.2 as we're getting the following error many times in our unit test suite through jsdom:
|
@ALL |
Confirmed 2.2.5 fixes the issue for me. |
@EvHaus |
Can confirm this 2.2.5 fixes the issue in my app too 👍🏼 Thanks @dperini 😄 |
v2.2.5 fails for me with this selector: dom.querySelectorAll(':is(div, p, a, h1, h2, h3, h4, h5, h6, ul, ol, li, blockquote):not(:empty) + :is(br, p:empty)') SyntaxError: 'div, p, a, h1, h2, h3, h4, h5, h6, ul, ol, li, blockquote):not(:empty)+:is(br,p:empty' is not a valid selector but works fine on v2.2.4 |
v2.2.5 works for me aswell, thanks. |
Doesn't work for me either on 2.2.5 with selector: |
@Piliuta @TomONeill @ALL |
Hello @dperini <root xmlns:s="http://example.com">
<s:a></s:a>
</root>
This used to work in prior versions (tested with EDIT: tested with 2.2.0, not 2.2.2 |
@LucasLefevre Also the message "unknown pseudo-class selector ':a'" is misleading because this has nothing to do with "pseudo-class" selectors". So I have to fix the misleading error thrown there, but it seems that XML is not a problem currently. |
The selector " |
I am using jsdom, which uses this library as a dependency. Running
document.querySelector(':is(code, pre)[class^="language-"]')
raises a syntax error, which did not happen in earlier versions.The problem must be caused by a change between version 2.2.2 (worked) and 2.2.3 (does not work).
Forcing an older version of this library in the
package.json
fixes the issue.The text was updated successfully, but these errors were encountered: