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

Issue 2678343007: Modify DateComponents::parseTime to reject values with >3 fractional decimal places (Closed)

Created:
3 years, 10 months ago by Matt R
Modified:
3 years, 10 months ago
Reviewers:
tkent, matthieu.rigolot, PhistucK
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

input[type=time] and input[type=datetime-local] should not accept milliseconds with 4+ digits. Modify DateComponents::parseTime to reject values with >3 fractional decimal places. New behavior matches to the specification and Firefox behavor. https://html.spec.whatwg.org/multipage/infrastructure.html#times BUG=683041 Review-Url: https://codereview.chromium.org/2678343007 Cr-Commit-Position: refs/heads/master@{#449109} Committed: https://chromium.googlesource.com/chromium/src/+/925b3122a05d1ecaeedc8780a05089de19a6990a

Patch Set 1 #

Patch Set 2 : Updated tests #

Messages

Total messages: 31 (22 generated)
PhistucK
Thank you! Do not forget to add tests (Web Platform Tests are preferred).
3 years, 10 months ago (2017-02-08 12:44:20 UTC) #5
PhistucK
3 years, 10 months ago (2017-02-08 12:44:47 UTC) #7
Matt R
On 2017/02/08 12:44:20, PhistucK wrote: > Thank you! Do not forget to add tests (Web ...
3 years, 10 months ago (2017-02-08 13:44:29 UTC) #8
tkent
Please "publish" this codereview. On 2017/02/08 at 13:44:29, Matthieu.Rigolot wrote: > On 2017/02/08 12:44:20, PhistucK ...
3 years, 10 months ago (2017-02-08 14:38:36 UTC) #9
Matt R
On 2017/02/08 14:38:36, tkent wrote: > Please "publish" this codereview. > > On 2017/02/08 at ...
3 years, 10 months ago (2017-02-08 16:23:12 UTC) #18
tkent
lgtm. Thank you for fixing this! CL description: -------------------------- Modify DateComponents::parseTime to reject values with ...
3 years, 10 months ago (2017-02-08 22:18:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2678343007/20001
3 years, 10 months ago (2017-02-08 22:20:36 UTC) #27
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/925b3122a05d1ecaeedc8780a05089de19a6990a
3 years, 10 months ago (2017-02-08 22:26:46 UTC) #30
Matt R
3 years, 10 months ago (2017-02-08 23:07:42 UTC) #31
Message was sent while issue was closed.
On 2017/02/08 22:18:46, tkent wrote:
> lgtm.  Thank you for fixing this!
> 
> CL description:
> --------------------------
> Modify DateComponents::parseTime to reject values with >3 fractional decimal
> places
> 
> BUG=683041
> --------------------------
> 
> I prefer describing user-visible behavior change in the first paragraph.  I'll
> change it to:
> 
> --------------------------
> input[type=time] and input[type=datetime-local] should not accept milliseconds
> with 4+ digits.
> 
> Modify DateComponents::parseTime to reject values with >3 fractional decimal
> places.
> New behavior matches to the specification and Firefox behavor.
> 
> https://html.spec.whatwg.org/multipage/infrastructure.html#times
> 
> BUG=683041
> --------------------------

Happy to help! Thanks for the guidance on this

Powered by Google App Engine
This is Rietveld 408576698