Draft This page is not complete.
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 | Status | Comment |
HTML Living StandardThe definition of 'ValidityState.tooLong' in that specification. | Living Standard | |
HTML 5.1The definition of 'ValidityState.tooLong' in that specification. | Recommendation | |
HTML5The definition of 'ValidityState.tooLong' in that specification. | Recommendation |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
tooLong
|
Chrome
Full support 15 |
Edge Full support 12 Full support 12 Notes' Not supported in the unlikely case of the value being initially set too long, and then changed by the user to a still incorrect state. Per caniuse.com. |
Firefox Full support 4 Full support 4 Notes' Not supported in the unlikely case of the value being initially set too long, and then changed by the user to a still incorrect state. Per caniuse.com. |
IE
Full support 10 |
Opera
Full support 15 |
Safari
Full support 11 |
WebView Android
Full support 4 |
Chrome Android
Full support Yes |
Firefox Android
Full support 64 |
Opera Android
Full support 14 |
Safari iOS
Full support 5 |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- See implementation notes.'
- See implementation notes.
See also
validityState.tooLong by Mozilla Contributors is licensed under CC-BY-SA 2.5.