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

Issue 235273003: parsing input type=number should skip spaces (Closed)

Created:
6 years, 8 months ago by gnana
Modified:
6 years, 8 months ago
Reviewers:
tkent, keishi
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

parsing input type=number should skip spaces skipping spaces in number string parsing without reformatting user input. BUG=162463 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171834

Patch Set 1 #

Total comments: 5

Patch Set 2 : incorporated review comments #

Total comments: 14

Patch Set 3 : incorporated review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -3 lines) Patch
A LayoutTests/fast/forms/number/number-skip-spaces-in-user-input.html View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A + LayoutTests/fast/forms/number/number-skip-spaces-in-user-input-expected.txt View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M Source/platform/text/PlatformLocale.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
gnana
Please have a look.
6 years, 8 months ago (2014-04-11 14:30:28 UTC) #1
tkent
What we should update is Locale::convertFromLocalizedNumber(). We should not change behavior of input.value and value ...
6 years, 8 months ago (2014-04-14 00:47:37 UTC) #2
gnana
On 2014/04/14 00:47:37, tkent wrote: > What we should update is Locale::convertFromLocalizedNumber(). We should not ...
6 years, 8 months ago (2014-04-14 11:27:27 UTC) #3
gnana
Thanks tkent for the review. Locale::convertFromLocalizedNumber() is used only for HTMLInputElement::hasBadInput() other wise i dont ...
6 years, 8 months ago (2014-04-14 11:29:41 UTC) #4
tkent
On 2014/04/14 11:29:41, gnana wrote: > Thanks tkent for the review. > Locale::convertFromLocalizedNumber() is used ...
6 years, 8 months ago (2014-04-14 23:34:22 UTC) #5
gnana
Thanks tkent! This works. I have put the patch again. Please have a look.
6 years, 8 months ago (2014-04-15 13:33:11 UTC) #6
tkent
https://codereview.chromium.org/235273003/diff/60001/LayoutTests/fast/forms/number/number-setvalueforuser-skip-spaces.html File LayoutTests/fast/forms/number/number-setvalueforuser-skip-spaces.html (right): https://codereview.chromium.org/235273003/diff/60001/LayoutTests/fast/forms/number/number-setvalueforuser-skip-spaces.html#newcode1 LayoutTests/fast/forms/number/number-setvalueforuser-skip-spaces.html:1: <html> The test name is confusing. We have HTMLInputElemenet::setValueForUser, ...
6 years, 8 months ago (2014-04-16 01:52:51 UTC) #7
gnana
Please have a look https://codereview.chromium.org/235273003/diff/60001/LayoutTests/fast/forms/number/number-setvalueforuser-skip-spaces.html File LayoutTests/fast/forms/number/number-setvalueforuser-skip-spaces.html (right): https://codereview.chromium.org/235273003/diff/60001/LayoutTests/fast/forms/number/number-setvalueforuser-skip-spaces.html#newcode1 LayoutTests/fast/forms/number/number-setvalueforuser-skip-spaces.html:1: <html> On 2014/04/16 01:52:51, tkent ...
6 years, 8 months ago (2014-04-16 14:13:56 UTC) #8
tkent
lgtm
6 years, 8 months ago (2014-04-17 02:17:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gnanasekar.s@samsung.com/235273003/100001
6 years, 8 months ago (2014-04-17 02:17:23 UTC) #10
commit-bot: I haz the power
6 years, 8 months ago (2014-04-17 03:22:31 UTC) #11
Message was sent while issue was closed.
Change committed as 171834

Powered by Google App Engine
This is Rietveld 408576698