Closed Bug 1621981 Opened 4 years ago Closed 4 years ago

<input type=number> with step 0.1: decimal separator local de is "." instead of ","

Categories

(Core :: Layout: Form Controls, defect)

74 Branch
Desktop
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1622221
Tracking Status
firefox-esr68 --- unaffected
firefox73 --- unaffected
firefox74 --- wontfix
firefox75 --- fixed
firefox76 --- fixed

People

(Reporter: gateway2mobil, Unassigned)

References

(Regression)

Details

(Keywords: intl, regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0

Steps to reproduce:

Windows 10
Local: German (de-DE)
Firefox 74.0

<input type=number> with step 0.1: decimal separator local de is "." instead of ","
In Firefox 73 it works as expected.

Exmaple-Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<input type="number" id="test" lang="de" min="1" value="45.8" max="120" step="0.1"/>
</body>
</html>

Actual results:

Firefox 74 result: 45.8 (not ok)

Expected results:

Firefox 73 result: 45,8 (ok)

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Ever confirmed: true
Keywords: regression
OS: Unspecified → All
Regressed by: 981248
Hardware: Unspecified → Desktop
Keywords: intl

I think this matches other browsers, and was a sorta intentional change... Users can still write localized numbers, but .value is kept as a string.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: