New issue
Advanced search Search tips

Issue 598690 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 141169
Owner:
Closed: Mar 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

<input type=number> does not allow commas where it should

Reported by goo...@lanrules.de, Mar 29 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

Example URL:
https://jsfiddle.net/r6yw3kux/

Steps to reproduce the problem:
1. Have any form with input of type 'number' and step 'any'
2. Specify lang on the document, form, or the input to a language where comma is the decimal separator
3. (Optionally) also specify a pattern that allows commas

What is the expected behavior?
The user may use comma as a decimal separator

What went wrong?
Entering a comma is blocked

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 48.0.2564.116  Channel: n/a
OS Version: 
Flash Version: 

Even if one would not make the input locale-aware in general, at least the pattern parameter should take precedence to allow the comma.
 
Components: -Blink Blink>Forms

Comment 2 by tkent@chromium.org, Mar 30 2016

Components: -Blink>Forms Blink>Forms>Number
Labels: -OS-Linux OS-All
Mergedinto: 141169
Owner: tkent@chromium.org
Status: Duplicate (was: Unconfirmed)
Note that the number type must not support "pattern" attribute according to the HTML specification.

Sign in to add a comment