New issue
Advanced search Search tips

Issue 895222 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 141169
Owner: ----
Closed: Oct 22
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



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 description

UserAgent: 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.
 
Labels: Needs-Triage-M69
Cc: susan.boorgula@chromium.org
Labels: Needs-Feedback Triaged-ET
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..
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.
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
Project Member

Comment 5 by sheriffbot@chromium.org, Oct 16

Labels: -Needs-Feedback
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
Cc: bokan@chromium.org
Components: -Blink>Input Blink>Forms>Number
Labels: -Pri-2 Pri-3
Status: Untriaged (was: Unconfirmed)
Works in Firefox but not Edge. It's not clear to me what's expected here.
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
Mergedinto: 141169
Status: Duplicate (was: Untriaged)
Form control UI doesn't respect 'lang' attribute for now.

Sign in to add a comment