Bug 219216 - Use real dates and times as placeholders for date/time inputs with editable components
Summary: Use real dates and times as placeholders for date/time inputs with editable c...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari Technology Preview
Hardware: Mac Unspecified
: P2 Normal
Assignee: Aditya Keerthi
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-11-20 11:47 PST by Aditya Keerthi
Modified: 2020-11-30 08:35 PST (History)
8 users (show)

See Also:


Attachments
Patch (20.75 KB, patch)
2020-11-20 11:52 PST, Aditya Keerthi
no flags Details | Formatted Diff | Diff
Patch (21.61 KB, patch)
2020-11-29 14:00 PST, Aditya Keerthi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aditya Keerthi 2020-11-20 11:47:17 PST
...
Comment 1 Aditya Keerthi 2020-11-20 11:47:31 PST
<rdar://problem/71636615>
Comment 2 Aditya Keerthi 2020-11-20 11:52:12 PST
Created attachment 414702 [details]
Patch
Comment 3 Devin Rousso 2020-11-20 17:10:56 PST
Comment on attachment 414702 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=414702&action=review

r=me

> Source/WebCore/ChangeLog:23
> +        placeholders are not customizable in any way, as it is an unspecified aspect

Does this include `HTMLInputElement.prototype.set placeholder` and/or basic CSS properties with `::placeholder`?  If so, are there plans to add support for these?
Comment 4 Aditya Keerthi 2020-11-20 19:27:49 PST
(In reply to Devin Rousso from comment #3)
> Comment on attachment 414702 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=414702&action=review
> 
> r=me
> 
> > Source/WebCore/ChangeLog:23
> > +        placeholders are not customizable in any way, as it is an unspecified aspect
> 
> Does this include `HTMLInputElement.prototype.set placeholder` and/or basic
> CSS properties with `::placeholder`?  If so, are there plans to add support
> for these?

The placeholder attribute is unsupported for date/time inputs in all browsers, as the behavior is unspecified. There are no plans to add support for these at this time.

It is something we could consider once a standard has been established, but that would require consideration of what acceptable values for the attribute would be.
Comment 5 Aditya Keerthi 2020-11-29 14:00:15 PST
Created attachment 414993 [details]
Patch
Comment 6 EWS 2020-11-30 08:35:42 PST
Committed r270245: <https://trac.webkit.org/changeset/270245>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 414993 [details].