-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
querySelectorAll
returns wrong results when :disabled
pseudo-class used
#1159
Comments
FWIW: the issue is also present in
|
Thank you for reporting @ciepol and @csantos1113! 🙂 This has now been fixed. The reason for why it didn't work is because the ":disabled" pseudo-class wasn't supported yet. |
Describe the bug
When
:disabled
pseudo-class is present inquerySelectorAll
it is ignored and result includes disabled elements.Additionally when combined with
:not()
it is not selecting anything.See examples below.
To Reproduce
Go to https://npm.runkit.com/happy-dom
and paste the code:
Expected behavior
It should select disabled elements. It should select enabled elements when combined with
:not()
pseudo-class.Additional context
Might be related to #990 .
The text was updated successfully, but these errors were encountered: