Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem / Motivation
Make the new HTML <input type="week" .../>
element available as an FAPI element in core.
References
Comment | File | Size | Author |
---|---|---|---|
#39 | 1496686-39.patch | 6.3 KB | rpayanm |
Comments
Comment #1
hansyg CreditAttribution: hansyg commentedtaggin
Comment #2
mgiffordSee #675348-64: META: Support HTML5 form input elements
Comment #3
mgiffordComment #4
vijaycs85Initial patch...
Comment #5
vijaycs85Comment #6
mgiffordNice! I was hoping it might be that easy. Thanks...
Comment #7
mgifford4: 1496686-week-element-3.patch queued for re-testing.
Comment #9
mgiffordreroll
Comment #10
mgiffordComment #11
Jalandhar CreditAttribution: Jalandhar commentedHere is the rerolled patch.
Comment #12
mgiffordSo to confirm, there are no UI changes with this. It's simply a matter of being able to use a #week form element when building custom forms. We might extend the UI in the future, but there's nothing here to show yet, right?
So to test this we need to simply work to verify the code is good and that we can build form with type
<input type="weak" />
.Which is presumably what we also need to do for #1496682: Add new HTML5 FAPI Element : month & #1496652: Add new HTML5 FAPI Element : datetime-local
Would be interesting to have a combined patch for these three issues as they are so related... Not sure if that would help get it into Core though.
Comment #13
vijaycs85here is a reroll of #11.
let's get them in at once, combining in to one patch may need further patch/review/commit credit into account.
Comment #14
mgiffordis it attached?
Comment #15
vijaycs85:) here it is for real...
Comment #16
Jalandhar CreditAttribution: Jalandhar commentedPatch #15, Needs reroll.
Comment #17
JeroenTWorking on this @ DUG Belgium.
Comment #18
JeroenTComment #19
thtas CreditAttribution: thtas commentedComment #20
thtas CreditAttribution: thtas commentedComment #21
jonathan_hunt CreditAttribution: jonathan_hunt commentedw3.org 404'ed, so new link provided.
Comment #22
mgifford@jonathan_hunt I think we should close this issue. I think that the week element has been removed from HTML5 http://stackoverflow.com/questions/21263515/why-is-html5-input-type-date...
Comment #23
jonathan_hunt CreditAttribution: jonathan_hunt commented@mgifford The link I offered turns out to be a discontinued document (http://www.w3.org/TR/html-markup/Overview.html). The current editor's draft for HTML5 is at http://drafts.htmlwg.org/html/master/ and includes http://www.w3.org/html/wg/drafts/html/master/semantics.html#week-state-(type=week) so the issue is still valid.
Comment #24
siva_epari CreditAttribution: siva_epari commentedComment #25
siva_epari CreditAttribution: siva_epari commentedPatch rerolled.
Comment #26
siva_epari CreditAttribution: siva_epari commentedComment #28
siva_epari CreditAttribution: siva_epari commentedComment #29
siva_epari CreditAttribution: siva_epari commentedComment #30
Sharique CreditAttribution: Sharique commentedComment #32
siva_epari CreditAttribution: siva_epari commentedComment #33
Sharique CreditAttribution: Sharique commentedComment #35
Sharique CreditAttribution: Sharique commentedComment #37
rpayanmPlease review.
Comment #39
rpayanmUppss wrong patch...
Comment #40
dcam CreditAttribution: dcam commented#39 still applies. Removing the "Needs reroll" tag in preparation for Drupalcon Los Angeles sprints.
Comment #41
Jalandhar CreditAttribution: Jalandhar commentedThis needs to be rerolled.
Comment #42
Anonymous (not verified) CreditAttribution: Anonymous at XIO commentedSince this is a feature request, I don't think we can do this during the beta evalutaion. So postponing for 8.1.x.