Input-types for Dates an Times not recognized/rendered

The place to report Pale Moon specific bugs on the Windows operating system.

Moderator: satrow

User avatar
AndieM
Newbie
Newbie
Posts: 3
Joined: 2019-04-11, 14:49

Input-types for Dates an Times not recognized/rendered

Unread post by AndieM » 2019-04-11, 15:52

Not sure if it is a bug or "again feature request", if it's in the wrong section please move or merge with the other thread.
The HTML input types for date and time values are not recognized. Instead a text-input is rendered.

-Tested with: PM 28.4.1 x64 (fresh profile), Win7 x64
-2nd test: Debian 9 amd64, same PM-Version, downloaded today.

Steps to reproduce:
-open a page with a date or time input field e.g.
https://wiki.selfhtml.org/extensions/Se ... typen.html
-expected result: The input-fields should be rendered as date/time (etc)
-actual result: The input-fields are rendered as text-inputs. (Verified by inspection of DOM-property "type"=text)

I already found an (accepted and closed) former feature-request (that's why in the bug-section):
https://forum.palemoon.org/viewtopic.php?f=13&t=9394
and the GitHub-issue posted there (Issue #159 (159)) is marked as "Solved by Tycho" and closed.

The other "major" browsers support it (https://caniuse.com/input-datetime, Firefox 60 supports at least "date" and "time") - It would be nice to see it in PM (again?).
Off-topic:
@Moonchild & Team: Thanks for pushing against the kind of "degenerative" evolution in development of Firefox.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 23234
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Input-types for Dates an Times not recognized/rendered

Unread post by Moonchild » 2019-04-11, 17:04

set "dom.forms.datetime" to "true" - that should give you a date picker and preformat both the date and time form fields.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

User avatar
AndieM
Newbie
Newbie
Posts: 3
Joined: 2019-04-11, 14:49

Re: Input-types for Dates an Times not recognized/rendered

Unread post by AndieM » 2019-04-11, 22:11

OK, that setting helps :thumbup:

Out of curiosity: This part is still under test, so it's not active by default?

Is there a plan for improvements regarding region-specific versions like 24h-Time or other date-formats?
Suggestion: Maybe by reading the OS-settings? AFAIK it's already used in date write-tasks, e.g. dates in the history window, but it might be harder to use it as a mask.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 23234
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Input-types for Dates an Times not recognized/rendered

Unread post by Moonchild » 2019-04-11, 23:01

It should follow the local format of the browser locale.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

User avatar
AndieM
Newbie
Newbie
Posts: 3
Joined: 2019-04-11, 14:49

Re: Input-types for Dates an Times not recognized/rendered

Unread post by AndieM » 2019-04-11, 23:41

Just checked it: I get American style, but with German letters as placeholders (m=month, t=Tag=day, j=Jahr=year) for the date. OS region-settings are German, de.xpi is installed and general.useragent.locale=de is set. (Browser-UI is in German, too.)

2 test-screenshots as attachment.
The right format would be "01:30" and "12.04.2019"
Attachments
inputs_time+date_empty.png
Version with Date and Time
inputs_time+date_empty.png (1.6 KiB) Viewed 138 times
inputs_time+date_filled_2019-04-12.png
Empty Version
inputs_time+date_filled_2019-04-12.png (1.26 KiB) Viewed 138 times

thosrtanner
Fanatic
Fanatic
Posts: 189
Joined: 2014-05-10, 18:19
Location: UK

Re: Input-types for Dates an Times not recognized/rendered

Unread post by thosrtanner » 2019-04-13, 06:09

picky note: that causes the date and datetime-local boxes to end up on the same line for me

Post Reply