Web/API/ValidityState/tooLong

From Get docs

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

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
tooLong Chrome

Full support 15

Edge 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 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