Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html.elements.input.type_datetime-local - Time picker not shown #21103

Closed
pizzi80 opened this issue Oct 27, 2023 · 3 comments
Closed

html.elements.input.type_datetime-local - Time picker not shown #21103

pizzi80 opened this issue Oct 27, 2023 · 3 comments
Labels
data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML duplicate Duplicate issues or pull requests. This one is closed in favor of the other issue or pull request.

Comments

@pizzi80
Copy link

pizzi80 commented Oct 27, 2023

What type of issue is this?

Browser bug (a bug with a feature that may impact site compatibility)

What information was incorrect, unhelpful, or incomplete?

Firefox in not compatible with

input type="datetime-local"

My User Agent is

Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0

What browsers does this problem apply to, if applicable?

Firefox

What did you expect to see?

A calendar plus a time of the day chooser like in other browsers, for example in Chrome
it's implemented in this way:

Schermata del 2023-10-27 10-39-37

Did you test this? If so, how?

Yes, many times, from 3 or 4 years now...

TO REPRODUCE

Go to: https://developer.mozilla.org/en-US/play

Paste the following html code:

<form>
  <label for="party">Enter a date and time for your party booking:</label>
  <input id="party" type="datetime-local" name="partydate" />
</form>

and you will see that is not possible to choose date and time for the input
because there is not Time Chooser!

Schermata del 2023-10-27 10-29-25

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://bugzilla.mozilla.org/show_bug.cgi?id=1726108

Do you have anything more you want to share?

A lot of devs and users are waiting from many years that Firefox fill this gap with other browsers!

Due to this bug Firefox is still not usable as a main browser
... people will continue to use Chrome, Safari or Edge instead of switching to Firefox ...

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local

MDN metadata

MDN page report details
  • Query: html.elements.input.type_datetime-local
  • Report started: 2023-10-27T08:25:55.813Z
@queengooborg queengooborg changed the title html.elements.input.type_datetime-local - <SUMMARIZE THE PROBLEM> html.elements.input.type_datetime-local - Time picker not shown Oct 29, 2023
@queengooborg queengooborg added the data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML label Oct 29, 2023
@lukewarlow
Copy link
Contributor

This imo isn't a compat data issue, Mozilla has just chosen not to make a picker UI for the time aspect (neither have Apple in Safari). They both fully recognise the input type and provide UI to edit the full value (just typing in the input itself).

@pizzi80
Copy link
Author

pizzi80 commented Dec 5, 2023

Mozilla has just chosen not to make a picker UI for the time aspect (neither have Apple in Safari)

Imo it's a bad choice and I wouldn't consider Safari an exemplary browser...

Overall is at best a "partial support":

  1. as an end User I do not consider this a supported feature in Firefox,
    because it's not the same user experience I have on Firefox for Android ...

  2. as a Developer it would be useful to know if a browser fully support the input
    because I had to know in advance if I can count on this input type or if I have to
    integrate an external library like for example ( https://flatpickr.js.org/ )

If you are interacting with the browser only with the mouse
you cannot correctly fill in the input,
which you can do with an <input type="number" /> or an <input type="color" />

Firefox has the same problem also with the <input type="time" />

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time

From a User experience perspective the input <input type="datetime-local" />
it's the worst case because the user see an alternative to the keyboard
by clicking on the icon associated with the input but
the field it's not valid after he has clicked on same value

try to add the "required" attribute to the input and the html5 validation fails...

<form>
  <div>
    <label for="party">
      Choose your preferred party date and time (required, June 1st 8.30am to
      June 30th 4.30pm):
    </label>
    <input
      id="party"
      type="datetime-local"
      name="partydate"
      min="2017-06-01T08:30"
      max="2017-06-30T16:30"
      required />
    <span class="validity"></span>
  </div>
  <div>
    <input type="submit" value="Book party!" />
  </div>
</form>

If Firefox is comfortable with this situation I suggest to remove
the date picker (calendar) from this input
forcing the user to enter the value with the keyboard

@queengooborg
Copy link
Contributor

Duplicate of #16138.

@queengooborg queengooborg closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
@queengooborg queengooborg added duplicate Duplicate issues or pull requests. This one is closed in favor of the other issue or pull request. and removed needs triage 🔎 labels Dec 6, 2023
queengooborg added a commit to queengooborg/browser-compat-data that referenced this issue Dec 6, 2023
This PR updates and corrects version values for Safari (Desktop and iOS/iPadOS) for the `type_datetime-local` member of the `input` HTML element. Related to mdn#16138 (see mdn#21103 (comment)).

Additional Notes: �
Elchi3 pushed a commit that referenced this issue Dec 12, 2023
This PR updates and corrects version values for Safari (Desktop and iOS/iPadOS) for the `type_datetime-local` member of the `input` HTML element. Related to #16138 (see #21103 (comment)).

Additional Notes: �
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML duplicate Duplicate issues or pull requests. This one is closed in favor of the other issue or pull request.
Projects
None yet
Development

No branches or pull requests

4 participants
@queengooborg @pizzi80 @lukewarlow and others