We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
On happy-dom 9.18.3, the selector [attr^=value] is not working when the value is not wrapped by quotes. This worked on previous versions.
To Reproduce
const { Window } = require("happy-dom") const window = new Window(); const document = window.document; document.body.innerHTML = '<div id="my-container"></div>'; console.log(document.querySelector('[id^="my"]') != null); console.log(document.querySelector("[id^='my']") != null); console.log(document.querySelector("[id^=my]") != null);
Output:
true // [id^="my"] true // [id^='my'] false // [id^=my]
Expected behavior
Output with version 9.16.0
true // [id^="my"] true // [id^='my'] true // [id^=my]
Device:
The text was updated successfully, but these errors were encountered:
#923@patch: Fixes issue where attribute selectors with an operator an…
8c9da27
…d with a value without quatation marks no longer worked (e.g. "[attr^=value]").
Merge pull request #926 from capricorn86/task/923-selector-attr=value…
2c62156
…-without-quotes-not-working-with-the-latest-version #923@patch: Fixes issue where attribute selectors with an operator an…
Thank you for reporting @ypconstante! 🙂
There is a fix released now.
You can read more about the release here: https://github.com/capricorn86/happy-dom/releases/tag/v9.19.2
Sorry, something went wrong.
capricorn86
Successfully merging a pull request may close this issue.
Describe the bug
On happy-dom 9.18.3, the selector [attr^=value] is not working when the value is not wrapped by quotes. This worked on previous versions.
To Reproduce
Output:
Expected behavior
Output with version 9.16.0
Device:
The text was updated successfully, but these errors were encountered: