In #675348-64: META: Support HTML5 form input elements @webchick clearly outlined the HTML5 elements which are still missing in Drupal 8. function datetime_element_info() has datetime in datetime/datetime.module:
Theme theme_date seems to support HTML5 types of 'date', 'datetime', 'datetime-local', and 'time', but 'datetime-local' isn't in system_element_info() .
All of these HTML5 elements could use support:
month - #1496682: Add new HTML5 FAPI Element : month
week - #1496686: Add new HTML5 FAPI Element : week
time - #1496708: Add new HTML5 FAPI Element : time
datetime-local - #1496652: Add new HTML5 FAPI Element : datetime-local
Also see #1183606: Implement Form API support for new HTML5 elements
And the big date patch here #501428: Date and time field type in core
Comments
Comment #1
panchoWhile theme_date seems to support the HTML5 types of 'date', 'datetime', 'datetime-local', and 'time', they aren't exposed as separate elements but as variants of the 'datetime' element. Also, I didn't find actual tests on this, so we don't know for sure if they really work.
As, another meta issue level really isn't needed, we might want to use this issue for a patch introducing proper tests. I'm gonna take a look at what can be done. Month and week remain to be implemented, but that should happen in the two separate issues.
Comment #2
panchoComment #3
mgiffordComment #4
mgiffordComment #5
mgiffordFrom [#1496652 -26] datetime did get in Core but seems like it's been removed http://stackoverflow.com/questions/21263515/why-is-html5-input-type-date...
Comment #7
jhedstromThings have changed a bit since the IS was updated.
Comment #11
jhedstromClosing this out since tests will be part of adding support for the individual elements as they get into core.