Problems with a date field

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
Ned Flanders

Problems with a date field

Unread post by Ned Flanders » 2021-09-05, 08:21

Hi everyone,

I am having issues with a date field which possibly is a bug. The field works in FireFox, Opera, Chrome but not in PaleMoon.

Here is a screenshot.
Attachments
Untitled 1.png

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2193
Joined: 2018-05-05, 13:29

Re: Problems with a date field

Unread post by vannilla » 2021-09-05, 10:26

Pale Moon currently displays date input fields as textboxes.
You can either work on UXP to align the display with other browsers or see if you can give some CSS to that field on the website to increase its width.

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Problems with a date field

Unread post by coffeebreak » 2021-09-05, 13:56

Problems with a date field where ?

Please provide a link.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35633
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Problems with a date field

Unread post by Moonchild » 2021-09-05, 16:06

vannilla wrote:
2021-09-05, 10:26
Pale Moon currently displays date input fields as textboxes.
No, it doesn't.

See the live example on https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2193
Joined: 2018-05-05, 13:29

Re: Problems with a date field

Unread post by vannilla » 2021-09-05, 17:15

Shows like a textbox to me. See attached image.
Unfortunately due to how screenshots are taken on my system the input loses focus temporarily, but even when clicking inside it it behaves like a normal textbox.
Pale Moon 29.4.0.2 on Linux using GTK2.
Attachments
2021-09-05-191307_992x393_scrot.png

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35633
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Problems with a date field

Unread post by Moonchild » 2021-09-05, 17:52

It is an input box but it's not a textbox. if you click it you should get a picker.
Some things might depent on your internationalisation support in the O.S. which complicates matters, but here's what it looks like on Windows 10:
FireShot Pro Screen Capture #302 - '{input type=_date_} - HTML_ HyperText Markup Language I MDN' - developer_mozilla_org_en-US_docs_Web_HTML_Element_input_date.jpg
When clicked (popup cut off because of my screenshot process which doesn't like floating layers):
FireShot Pro Screen Capture #303 - '{input type=_date_} - HTML_ HyperText Markup Language I MDN' - developer_mozilla_org_en-US_docs_Web_HTML_Element_input_date.jpg
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2193
Joined: 2018-05-05, 13:29

Re: Problems with a date field

Unread post by vannilla » 2021-09-05, 19:35

"Textbox" to mean "not a calendar picker". :angel:
And no, if I click on it I get nothing but the ability to insert something using the keyboard, no pickers.
My system is en-US.utf8 with an en-US (i.e. no language packs) browser.
Haven't tried with GTK3 yet, so I can't say if it's a problem with the toolkit.

Toa-Nuva
Fanatic
Fanatic
Posts: 200
Joined: 2015-06-04, 18:12

Re: Problems with a date field

Unread post by Toa-Nuva » 2021-09-05, 20:12

It's the same for me in the GTK3 version. The field behaves like a text input and I do not get a date picker, no matter how I interact with it. I also tested in a new profile to rule out any interfering extensions or settings.

User avatar
Kerebron
Fanatic
Fanatic
Posts: 107
Joined: 2016-12-04, 22:01

Re: Problems with a date field

Unread post by Kerebron » 2021-09-06, 04:54

No date picker for me either. Just a textbox.
Pale Moon 29.4.0.2 x64 @ Windows 7 HP x64

User avatar
FranklinDM
Add-ons Team
Add-ons Team
Posts: 582
Joined: 2017-01-14, 02:40
Location: Philippines
Contact:

Re: Problems with a date field

Unread post by FranklinDM » 2021-09-06, 10:47

UXP does support the date/time picker for this type of input field, but the preference that controls this (dom.forms.datetime) is currently disabled by default. See Issue #1210 (UXP).

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35633
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Problems with a date field

Unread post by Moonchild » 2021-09-06, 11:17

Ah whoops, I didn't remember I had flipped those fields to "on" on my own install. Obviously it's stable enough to enable if you need it but it misses some localization stuff, so it'll expect en-US dates because that is the locale of the core browser. So enable with caveat.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked