ValidityState: tooLong property
Baseline 2023
Newly available
Since March 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The read-only tooLong
property of a ValidityState
object indicates if the value of an <input>
or <textarea>
, after having been edited by the user, exceeds the maximum code-unit length established by the element's maxlength
attribute.
Specifications
Specification |
---|
HTML Standard # dom-validitystate-toolong-dev |
Browser compatibility
BCD tables only load in the browser