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

JavaScript validity.tooShort returns false when true #203

Open
jabcreations opened this issue Aug 14, 2023 · 0 comments
Open

JavaScript validity.tooShort returns false when true #203

jabcreations opened this issue Aug 14, 2023 · 0 comments

Comments

@jabcreations
Copy link

jabcreations commented Aug 14, 2023

HTML:
<input id="test" minlength="4" type="text" value="123" />

JavaScript:
document.getElementById('test').validity.tooShort

Simple: the value here has a length of three, the minlength attribute species four characters while validity.tooShort incorrectly returns false when it should be true.

It should be a simple fix for someone familiar with the code.

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

No branches or pull requests

1 participant