BrowserWorks / Waterfox-Classic

The Waterfox Classic repository, for legacy systems and customisation.
https://classic.waterfox.net
Mozilla Public License 2.0
175 stars 34 forks source link

JavaScript validity.tooShort returns false when true #203

Open jabcreations opened 10 months ago

jabcreations commented 10 months ago

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.