Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Issue 22590003: input/textarea: Count value length with the standard way. (Closed)

Created:
7 years, 4 months ago by tkent
Modified:
7 years, 4 months ago
Reviewers:
keishi
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

input/textarea: Count text length for maxLength check with the standard way. We counted use-input text in grapheme cluster unit. i.e. A letter + combining characters are counted as '1,' and a surrogate pair is counted as '1.' According to the standard and other browsers, we shoudl count them in UTF-16 code point unit. BUG=148852 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155803

Patch Set 1 #

Total comments: 2

Patch Set 2 : comment in a test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -39 lines) Patch
M LayoutTests/fast/forms/input-text-paste-maxlength.html View 3 chunks +16 lines, -4 lines 0 comments Download
M LayoutTests/fast/forms/input-text-paste-maxlength-expected.txt View 1 chunk +6 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/textarea-maxlength.html View 1 2 chunks +7 lines, -7 lines 0 comments Download
M LayoutTests/fast/forms/textarea-maxlength-expected.txt View 1 chunk +6 lines, -4 lines 0 comments Download
M Source/core/html/HTMLTextAreaElement.cpp View 5 chunks +8 lines, -16 lines 0 comments Download
M Source/core/html/TextFieldInputType.cpp View 3 chunks +10 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
tkent
7 years, 4 months ago (2013-08-08 05:20:30 UTC) #1
keishi
lgtm https://codereview.chromium.org/22590003/diff/1/LayoutTests/fast/forms/textarea-maxlength.html File LayoutTests/fast/forms/textarea-maxlength.html (right): https://codereview.chromium.org/22590003/diff/1/LayoutTests/fast/forms/textarea-maxlength.html#newcode115 LayoutTests/fast/forms/textarea-maxlength.html:115: // However WebKit handles it as grapheme length. ...
7 years, 4 months ago (2013-08-08 06:46:51 UTC) #2
tkent
https://codereview.chromium.org/22590003/diff/1/LayoutTests/fast/forms/textarea-maxlength.html File LayoutTests/fast/forms/textarea-maxlength.html (right): https://codereview.chromium.org/22590003/diff/1/LayoutTests/fast/forms/textarea-maxlength.html#newcode115 LayoutTests/fast/forms/textarea-maxlength.html:115: // However WebKit handles it as grapheme length. On ...
7 years, 4 months ago (2013-08-08 21:07:20 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/22590003/8001
7 years, 4 months ago (2013-08-08 21:07:30 UTC) #4
commit-bot: I haz the power
7 years, 4 months ago (2013-08-08 23:07:27 UTC) #5
Message was sent while issue was closed.
Change committed as 155803

Powered by Google App Engine
This is Rietveld 408576698