Issue metadata
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.
,
Sep 12
Issue 883273 has been merged into this issue.
,
Sep 12
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!
,
Sep 12
,
Sep 13
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by dtapu...@chromium.org
, Sep 12