New issue
Advanced search Search tips

Issue 793673 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows
Pri: 2
Type: Feature



Sign in to add a comment

Input of type number does not accept commas, only periods

Reported by kai.no...@gmail.com, Dec 10 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce the problem:
1. Go to a site with <input type="number"> https://www.w3schools.com/html/tryit.asp?filename=tryhtml_input_number
2. Change your keyboard to non-English, e.g. German, since then the Keypad period will be a comma (!)
3. Try to enter a float number. Does not work, the comma is not accepted, you can only enter integers.

What is the expected behavior?
Allow the input of comma and period.

What went wrong?
Usability

Did this work before? N/A 

Chrome version: 62.0.3202.94  Channel: n/a
OS Version: 10.0
Flash Version:
 
Components: Blink>Input
Labels: Triaged-ET M-65 Needs-Triage-M62 OS-Linux
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Win-10 and Ubuntu 14.04 using chrome reported version #62.0.3202.94 and latest canary #65.0.3291.0.
Issue is not seen in OS-Mac.
This is a non-regression issue as it is observed from M50 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!
Components: -UI -Blink>Input Blink>Forms

Comment 3 by kochi@chromium.org, Dec 27 2017

Components: UI>Internationalization
Labels: -Type-Bug Type-Feature
Status: Available (was: Untriaged)
Probably this is working as specified, per HTML:
https://html.spec.whatwg.org/multipage/input.html#number-state-(type=number)
https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-floating-point-number

So the problem is in the non-English keyboard, not in Chrome/Blink?
Or HTML spec should be changed according to the locale, floating point
separator should allow comma for certain locales.

Comment 4 by kochi@chromium.org, Dec 27 2017

Components: -Blink>Forms Blink>Forms>Number

Comment 5 by tkent@chromium.org, Jan 9 2018

Status: WontFix (was: Available)
I think this is a user's failure. The user should not change the keyboard even though the number field accepts only period. We don't accept commas intentionally because commas are recognized as decimal separator in some locales.

Sign in to add a comment