Input of type number does not accept commas, only periods
Reported by
kai.no...@gmail.com,
Dec 10 2017
|
|||||
Issue descriptionUserAgent: 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:
,
Dec 13 2017
,
Dec 27 2017
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.
,
Dec 27 2017
,
Jan 9 2018
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 |
|||||
Comment 1 by krajshree@chromium.org
, Dec 12 2017Labels: Triaged-ET M-65 Needs-Triage-M62 OS-Linux
Status: Untriaged (was: Unconfirmed)