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

pancho’s picture

Assigned: Unassigned » pancho

While 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.

pancho’s picture

Title: Add Remaining HTML5 Date Elements month, week, time, datetime-local » Add tests for the new HTML5 date elements 'date', 'datetime', 'datetime-local' and 'time'
mgifford’s picture

mgifford’s picture

Assigned: pancho » Unassigned
mgifford’s picture

From [#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...

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jhedstrom’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs issue summary update

Things have changed a bit since the IS was updated.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jhedstrom’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Closing this out since tests will be part of adding support for the individual elements as they get into core.