Skip to content
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

setCustomValidity is not a Function #442

Closed
msawatzky75 opened this issue Mar 31, 2022 · 1 comment · Fixed by #444
Closed

setCustomValidity is not a Function #442

msawatzky75 opened this issue Mar 31, 2022 · 1 comment · Fixed by #444

Comments

@msawatzky75
Copy link

HTMLInputElement.prototype.setCustomValidity is not a function.

right now, i am able to get around the issue by mocking it:

import { vi } from "vitest";
window.HTMLInputElement.prototype.setCustomValidity = vi.fn();
capricorn86 added a commit that referenced this issue Mar 31, 2022
…MLInputElement.reportValidity() and HTMLInputElement.validationMessage.
capricorn86 added a commit that referenced this issue Mar 31, 2022
…s-not-a-function

#442@minor: Adds support for HTMLInputElement.setCustomValidity(), HT…
@capricorn86
Copy link
Owner

Thanks for reporting @msawatzky75! 🙂

I have added support for HTMLInputElement.setCustomValidity(), HTMLInputElement.reportValidity() and HTMLInputElement.validationMessage now.

You can read more about the release here:
https://github.com/capricorn86/happy-dom/releases/tag/v2.54.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants