Input-types for Dates an Times not recognized/rendered

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
AndieM
Moongazer
Moongazer
Posts: 13
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):
viewtopic.php?f=13&t=9394
and the GitHub-issue posted there (Issue #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: 35473
Joined: 2011-08-28, 17:27
Location: Motala, SE
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.
"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

User avatar
AndieM
Moongazer
Moongazer
Posts: 13
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: 35473
Joined: 2011-08-28, 17:27
Location: Motala, SE
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.
"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

User avatar
AndieM
Moongazer
Moongazer
Posts: 13
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
Version with Date and Time
Version with Date and Time
inputs_time+date_empty.png (1.6 KiB) Viewed 489 times
Empty Version
Empty Version
inputs_time+date_filled_2019-04-12.png (1.26 KiB) Viewed 489 times

thosrtanner
Lunatic
Lunatic
Posts: 395
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

Locked