validityState.tooLong

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 Standard
The definition of 'ValidityState.tooLong' in that specification.
Living Standard
HTML 5.1
The definition of 'ValidityState.tooLong' in that specification.
Recommendation
HTML5
The definition of 'ValidityState.tooLong' in that specification.
Recommendation

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
tooLongChrome Full support 15Edge Full support 12
Notes
Full support 12
Notes
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
Notes
Full support 4
Notes
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 10Opera Full support 15Safari Full support 11WebView Android Full support 4Chrome Android Full support YesFirefox Android Full support 64Opera Android Full support 14Safari iOS Full support 5Samsung Internet Android Full support 4.0

Legend

Full support Ā 
Full support
See implementation notes.
See implementation notes.

See also