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 The Element contains method does not check if the given element is the element itself resulting in wrong results.
To Reproduce Pseudo code:
const element = queryElement(); expect(element.contains(element)).toBeTruthy();
Expected behavior contains should return true if the given element is the same element running the method on.
Device:
The text was updated successfully, but these errors were encountered:
capricorn86#776@patch: Add self equality check in node.contains method.
c439cc1
Merge pull request #777 from CSchulz/patch-6
ca0d075
#776@patch: Add self equality check in node.contains method.
Thanks again for the contribution! 🌟
You can read more about the release here: https://github.com/capricorn86/happy-dom/releases/tag/v8.7.4
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
The Element contains method does not check if the given element is the element itself resulting in wrong results.
To Reproduce
Pseudo code:
Expected behavior
contains should return true if the given element is the same element running the method on.
Device:
The text was updated successfully, but these errors were encountered: