minlength
and maxlength
are not validated when value is set programmatically
#4358
Labels
minlength
and maxlength
are not validated when value is set programmatically
#4358
Description
Both
minlength
andmaxlength
don’t validate programmatically set values as follows from the HTML specification. This means thatcheckValidity()
oftext-field
andtext-area
may give a false positive result if any of the mentioned constraints are set and the value is set programmatically.A finding from #4196
Expected outcome
I would expect
minlength
andmaxlength
to be validated correctly regardless of the origin of the value: programmatic or user.Minimal reproducible example
Steps to reproduce
minlength
.Environment
Version: 23.2
OS: Mac OS
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: