Open
Bug 1880097
Opened 1 year ago
Updated 1 year ago
datetime input does not use "dir" of web exposed locale
Categories
(Toolkit :: UI Widgets, defect, P3)
Tracking
()
NEW
People
(Reporter: henry-x, Unassigned)
References
Details
Noticed when testing in Tor Browser.
Steps to reproduce
Using Firefox with "ar" locale:
- In "about:config" set
privacy.spoof_english
to2
. - Restart.
- Visit https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#basic_uses_of_datetime-local
Result
From left to right, the unfilled datetime input shows: picker; AM/PM input; date input; time input.
After entering an hour, the layout switches to: picker; date input; time input; AM/PM input.
Expect
The order and direction should remain the same and follow the spoofed en-US direction: date input; time input; AM/PM input; picker.
Note, the fact that the placeholders use "ar" rather an "en-US" is a separate issue: bug#1880108.
Cause
I think the problem is that datetime input uses the app locale direction to set the "dir" attribute. Rather than using the direction associated with the mLocales[0]
.
Updated•1 year ago
|
Severity: -- → S3
Priority: -- → P3
You need to log in
before you can comment on or make changes to this bug.
Description
•