Open Bug 1212230 Opened 10 years ago Updated 3 years ago

Firefox shows NaN (not a number) using type="number" in windows 10 when date,time format is Persian

Categories

(Core :: Layout: Form Controls, defect)

41 Branch
x86_64
Windows 10
defect

Tracking

()

UNCONFIRMED

People

(Reporter: shahmoradi.mohammad, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 Build ID: 20150929144111 Steps to reproduce: <input class="min" id="time_filter_value1" min="0" step="1" type="number"> windows 10 , date,time and region format is set to Persian. Restart is required. Actual results: Firefox shows NaN Expected results: Firefox should show a number, when I change region to English and restart my computer Firefox works correctly.
OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 20150929144111 (In reply to mohammad from comment #0) > Steps to reproduce: > > <input class="min" id="time_filter_value1" min="0" step="1" type="number"> > > windows 10 , date,time and region format is set to Persian. Restart is > required. Is that really it? Is there no JavaScript associated with that element? > Actual results: > > Firefox shows NaN Works for me (in Windows 7 en-US). In the en-US version of Firefox, I see Arabic numerals, while the Persian one shows Persian numerals.
Blocks: number-input
Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
in en-us format work correctly.
Attachment #8693598 - Attachment description: Format U.S.PNG → int en-us format work correctly.
Attachment #8693598 - Attachment description: int en-us format work correctly. → in en-us format numbers shown in correct format.
In Persian format, numbers shown as 'NaN'.
Attachment #8693603 - Attachment description: Format Persian.PNG → In Persian format, numbers shown as 'NaN'.
Comment on attachment 8693598 [details] in en-us format numbers shown in correct format. in en-us format numbers shown in correct format.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: