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

Issue 596723002: Enabling selection API for input type=<file, color, date, email, number> (Closed)

Created:
6 years, 3 months ago by Habib Virji
Modified:
6 years, 2 months ago
Reviewers:
keishi, tkent
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Enabling selection API for input type=<file, color, date, email, number> Source/core/html/forms/BaseDateAndTimeInputType.cpp Source/core/html/forms/BaseDateAndTimeInputType.h Source/core/html/forms/TextFieldInputType.cpp Source/core/html/forms/TextFieldInputType.h -Added selection API support as these are the base class and all its derived type support selection API. Source/core/html/forms/ColorInputType.cpp Source/core/html/forms/ColorInputType.h Source/core/html/forms/FileInputType.cpp Source/core/html/forms/FileInputType.h - Added support for the selection API. Source/core/html/forms/BaseTextInputType.cpp Source/core/html/forms/BaseTextInputType.h Source/core/html/forms/EmailInputType.cpp Source/core/html/forms/EmailInputType.h Source/core/html/forms/NumberInputType.cpp Source/core/html/forms/NumberInputType.h - Removed supportsSelectionAPI as the base class now includes selection API support. R=tkent@chromium.org,keishi BUG=415391 TEST=Updated setrangetext to include new test which does not throw. Number-setrangetext is updated, as number field can except only numbers.

Patch Set 1 : Enabling Selection API for input type email and number #

Unified diffs Side-by-side diffs Delta from patch set Stats (+482 lines, -90 lines) Patch
M LayoutTests/fast/forms/color/color-setrangetext.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/color/color-setrangetext-expected.txt View 2 chunks +5 lines, -3 lines 0 comments Download
M LayoutTests/fast/forms/date/date-setrangetext.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/date/date-setrangetext-expected.txt View 2 chunks +5 lines, -3 lines 0 comments Download
M LayoutTests/fast/forms/datetimelocal/datetimelocal-setrangetext.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/datetimelocal/datetimelocal-setrangetext-expected.txt View 2 chunks +5 lines, -3 lines 0 comments Download
M LayoutTests/fast/forms/file/file-setrangetext.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/file/file-setrangetext-expected.txt View 2 chunks +5 lines, -3 lines 0 comments Download
M LayoutTests/fast/forms/month/month-setrangetext.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/month/month-setrangetext-expected.txt View 2 chunks +5 lines, -3 lines 0 comments Download
M LayoutTests/fast/forms/number/number-setrangetext.html View 1 chunk +136 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/number/number-setrangetext-expected.txt View 1 chunk +120 lines, -5 lines 0 comments Download
M LayoutTests/fast/forms/resources/common-setrangetext.js View 1 chunk +26 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/selection-wrongtype.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/selection-wrongtype-expected.txt View 2 chunks +0 lines, -21 lines 0 comments Download
M LayoutTests/fast/forms/setrangetext.html View 2 chunks +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/setrangetext-expected.txt View 2 chunks +124 lines, -6 lines 0 comments Download
M LayoutTests/fast/forms/time/time-setrangetext.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/time/time-setrangetext-expected.txt View 2 chunks +5 lines, -3 lines 0 comments Download
M LayoutTests/fast/forms/week/week-setrangetext.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/forms/week/week-setrangetext-expected.txt View 2 chunks +5 lines, -3 lines 0 comments Download
M Source/core/html/forms/BaseDateAndTimeInputType.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/forms/BaseDateAndTimeInputType.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/html/forms/BaseTextInputType.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/forms/BaseTextInputType.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/html/forms/ColorInputType.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/forms/ColorInputType.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/html/forms/EmailInputType.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/forms/EmailInputType.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/html/forms/FileInputType.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/forms/FileInputType.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/html/forms/NumberInputType.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/forms/NumberInputType.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/html/forms/TextFieldInputType.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/forms/TextFieldInputType.cpp View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Habib Virji
Implementation of selection API for input type=email, number. They seem to be working and have ...
6 years, 3 months ago (2014-09-23 11:13:53 UTC) #2
tkent
This is not a correct implementation. > Enabling selection API for input type=<file, color, date, ...
6 years, 3 months ago (2014-09-23 22:33:49 UTC) #3
Habib Virji
On 2014/09/23 22:33:49, tkent (high review load) wrote: > This is not a correct implementation. ...
6 years, 3 months ago (2014-09-24 10:12:47 UTC) #4
tkent
On 2014/09/24 10:12:47, Habib Virji wrote: > Had a look, select() is already working for ...
6 years, 3 months ago (2014-09-25 05:53:58 UTC) #5
Habib Virji
Found following behavior: 1. Chrome, Firefox. IE and Opera do not throw error for select() ...
6 years, 3 months ago (2014-09-25 08:54:15 UTC) #6
Habib Virji
@tkent: Closing this issue, as no response from Hixie. I was hoping to get clarification ...
6 years, 2 months ago (2014-10-17 14:55:17 UTC) #7
Habib Virji
6 years, 2 months ago (2014-10-17 14:55:20 UTC) #8
@tkent: Closing this issue, as no response from Hixie. I was hoping to get
clarification before uploading test for select. As mentioned in comment#6, there
is no exception in any browser but they differ on selection API.

Powered by Google App Engine
This is Rietveld 408576698