Issue metadata
Sign in to add a comment
|
number input field doesn't accept hyphen-minus with comma as decimal (en-150)
Reported by
j...@pakastin.fi,
Oct 15
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 Steps to reproduce the problem: 1. Create <input type="number" lang="en-150"> 2. Try to enter -1,5 3. Fails to parse the number with hyphen-minus, works with −1,5 or -1,5 What is the expected behavior? You should be able to use the keyboards' default minus character. What went wrong? en-150 parsing doesn't work Did this work before? N/A Does this work in other browsers? N/A Chrome version: 69.0.3497.100 Channel: stable OS Version: OS X 10.14.0 Flash Version: <input type="number"> is unusable here in Finland right now.
,
Oct 16
juha@ Thanks for the issue. Request you to provide a sample file where this issue can be reproduced, which will help in further triaging. Thanks..
,
Oct 16
Hi! Here you go: http://jsfiddle.net/qfbeL2rg/ Try to enter -1,5 there, and then −1,5 or -1.5 They all should work.
,
Oct 16
Btw. there's a typo in my initial comment: > 3. Fails to parse the number with hyphen-minus, works with −1,5 or -1,5 Should be: > 3. Fails to parse the number with hyphen-minus, works with −1,5 or -1.5
,
Oct 16
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 19
Works in Firefox but not Edge. It's not clear to me what's expected here.
,
Oct 20
A lot of countries use decimal comma and because hyphen-minus is the default minus sign on every keyboard, that’s the common way to write i.e. -1,5 (-1.5 in US) Shouldn’t the standard be expected, especially when strictly defined with the lang attribute. https://en.m.wikipedia.org/wiki/Decimal_separator#Countries_using_Arabic_numerals_with_decimal_comma
,
Oct 22
Form control UI doesn't respect 'lang' attribute for now. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by viswa.karala@chromium.org
, Oct 15