Chromium Code Reviews
DescriptionChange the linebreak behavior of minlength and maxlength attributes of TEXTAREA.
Change it in response to a specification change, and to improve compatibility with
Firefox and Edge.
Old behavior:
CRLF, CR, or LF is counted as 2 because we limited the submission value.
New behavior:
CRLF, CR, or LF is counted as 1 because we limit the API value.
We can use HTMLTextAreaElement::value().length() as is because it's the API value,
and other string input should be counted by computeLengthForAPIValue().
Approved intent-to-ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/MkSfvCan7kY/PgniO8jwAAAJ
BUG=624361
Committed: https://crrev.com/a15474ff7adff41a8956ab436ac63a7d5b7a090f
Cr-Commit-Position: refs/heads/master@{#421445}
Patch Set 1 #
Messages
Total messages: 21 (16 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||