Update <textarea maxlength/minlength> behavior for linebreaks

The specification was updated by https://github.com/whatwg/html/commit/163703186794c21daa92cc2718218afa44f26071. Before the change, maxlength/minlength limits |value| length, not |API value| length. In <textarea>, a single linebreak is represented as CR LF in |value|, and LF in |API value|. Firefox and Edge incorrectly applied to |API value|, and WebKit and Blink correctly applied to |value|. But the specification followed Firefox and Edge.


Working draft or equivalent

Status in Chromium


Enabled by default (tracking bug) in:

  • Chrome for desktop release 55
  • Chrome for Android release 55
  • Android WebView release 55
  • Opera release 42
  • Opera for Android release 42

Consensus & Standardization

  • Shipped
  • Shipped
  • No public signals
  • Mixed signals


Last updated on 2017-06-14