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.input-time - is now supported by safari #9172

Closed
timstokman opened this issue Feb 18, 2021 · 6 comments
Closed

html.elements.input.input-time - is now supported by safari #9172

timstokman opened this issue Feb 18, 2021 · 6 comments
Labels
data:html 📄 Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML

Comments

@timstokman
Copy link

What information was incorrect, unhelpful, or incomplete?

The page claims no support with safari for this input type.

What did you expect to see?

Safari added support for this in october 2020, see: https://bugs.webkit.org/show_bug.cgi?id=214946 and https://bugs.webkit.org/show_bug.cgi?id=200416

It's supported from TP 115 onwards apparently.

Did you test this? If so, how?

I asked a colleague to test this jsfiddle on his iPad: https://jsfiddle.net/2etfd6vm/

MDN page report details
@queengooborg queengooborg added the data:html 📄 Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML label Feb 19, 2021
@ddbeck
Copy link
Collaborator

ddbeck commented Mar 7, 2021

Thanks for reporting this, @timstokman.

Related to this is @tari's PR #9351, which attempts to make this change (and a couple of others) for desktop Safari.

For several reasons, we don't track features in Safari TP (at least not yet). When there's a general release Safari version number to pin this to, we can update the data. Until then, this will have to wait.

@timstokman
Copy link
Author

Works fine on the iPad without using a TP version of safari, so I'm assuming it made its way into the regular release. Here: https://webkit.org/status/#feature-date-and-time-input-types it says that only the week and month input types are not fully supported, time is.

@tari
Copy link

tari commented Mar 7, 2021

My understanding is that mobile Safari has supported these input types for a long time; the recent addition is for desktop Safari. The data already say support exists on iOS.

ddbeck added a commit to ddbeck/browser-compat-data that referenced this issue Mar 8, 2021
@ddbeck
Copy link
Collaborator

ddbeck commented Mar 8, 2021

Ah, it looks like I misunderstood the desktop/iOS distinction. Looking this over again, here's a summary of the situation:

feature iOS support macOS support
date 5 false, noted as "The input type is recognized, but there is no date-specific control." (shipping in a future version)
time true (missing version) false (shipping in a future version)
datetime-local true (missing version) false, noted as "The input type is recognized, but there is no date-specific control." (shipping in a future version)
month true (missing version) false
week true (according to WebKit platform status, should be false) false

It looks like the only obvious change we could make now is to correct week to false for both platforms. I've opened #9393 to do that.

We could also fill in missing version numbers for Safari for iOS. If you know of version numbers for that data or can test for them, I would welcome a PR amending that data.

I'm hoping the changes on desktop either appear in a release soon (or we merge some of the implementation pending schema changes that have been proposed). Until then, I think the main issue here and PR #9351 are on hold.

@jakub-g
Copy link
Contributor

jakub-g commented Apr 28, 2021

https://twitter.com/jensimmons/status/1387445020555419649

Safari 14.1 (shipping this week) also added support for Date & Time form controls:
<input type="datetime-local">
<input type="date">
<input type="time">
on macOS.

@queengooborg
Copy link
Collaborator

This has been resolved by #10129!

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
Projects
None yet
Development

No branches or pull requests

5 participants