New issue
Advanced search Search tips

Issue 883278 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 141169
Owner: ----
Closed: Sep 13
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

HTML5 number inputs - Comma and period as decimal marks

Reported by swe....@gmail.com, Sep 12

Issue description

Chrome Version       : Version 69.0.3497.92 (Offizieller Build) (64-Bit)
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari:
    Firefox: OK
    IE/Edge:


I had problem to set comma as decimal mark in HTML5 number inputs, test it:

		<input type="number" lang="en" value="0.01" /><br/>
		<input type="number" lang="pt" value="0.01" /><br/>
		<input type="number" lang="br" value="0.01" /><br/>
		<input type="number" lang="es" value="0.01" /><br/>

It doesn't work at Google Chrome. For instance the same works fine in Firefox.




What happens instead of that?


Please provide any additional information below. Attach a screenshot if
possible.



 
chrome.png
25.6 KB View Download
firefox.png
14.5 KB View Download
Components: Blink>Forms>Number
 Issue 883273  has been merged into this issue.
An alternative (suggestion) to solve: instead set decimal separator through setting lang (if it could cause some impact), try use specific attributes combined to read what to do, eg: if type="number", use attributes like leftSymbol, rightSymbol, positiveFormat, negativeFormat, thousandsSeparatorSymbol, decimalSeparatorSymbol, etc. to configure what will be shown to user. And more, when input type="number" (or another special type) could only accept numeric entries, no other symbols neither comma or dot, the end user will see a number formatted on screen (eg: 'R$ 10.101,100', '10.320 kg') and the number could be assembled from right to left while numbers are typed, but behind (the code) returns the number like default value (eg: '10101.1', '10.32'). Thanks!
Labels: Needs-Triage-M69
Mergedinto: 141169
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment