You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 whilevalidity.tooShort
incorrectly returnsfalse
when it should betrue
.It should be a simple fix for someone familiar with the code.
The text was updated successfully, but these errors were encountered: