Last updated February 22, 2012.
Overview
HTML5 forms are one of the areas where major changes and improvements have been made. There are 13 new element types and a number of new attributes that aim to improve both the user and developer experience of HTML forms. As part of the Drupal 8 HTML 5 Initiative, one of our goals is to add support for all of these elements and attributes. For detailed browser support information and demonstrations, visit http://wufoo.com/html5/.
Proposed plan
- Create an issue for the implementation of each element.
- Implement the elements in core, starting with the basic ones first.
- Look for legitimate uses for the elements in core and implement them.
Point Person(s)
Related Issues/Discussions
HTML5 Input Types
| Name | Specification | Issue(s) |
|---|---|---|
| color | WHATWG | W3C | #1445224: Add new HTML5 FAPI element: color |
| date | WHATWG | W3C | |
| datetime | WHATWG | W3C | |
| datetime-local | WHATWG | W3C | |
| month | WHATWG | W3C | |
| week | WHATWG | W3C | |
| time | WHATWG | W3C | |
| WHATWG | W3C | #1174620: Add new HTML5 FAPI element: email | |
| number | WHATWG | W3C | #1174640: Add new HTML5 FAPI element: number |
| range | WHATWG | W3C | #1174646: Add new HTML5 FAPI element: range |
| search | WHATWG | W3C | #1174628: Add new HTML5 FAPI element: search |
| tel | WHATWG | W3C | #1174634: Add new HTML5 FAPI element: telephone |
| url | WHATWG | W3C | #1174630: Add new HTML5 FAPI element: url |
HTML5 Input Attributes
| Name | Specification | Issue(s) |
|---|---|---|
| accept | WHATWG | W3C | |
| autocomplete | WHATWG | W3C | #1275764: Allow FAPI usage of the autocomplete attribute |
| autofocus | WHATWG | W3C | #1174936: Allow FAPI usage of the autofocus attribute |
| dirname | WHATWG | W3C | |
| list (datalist) | WHATWG | W3C | |
| formaction | WHATWG | W3C | |
| formenctype | WHATWG | W3C | |
| formmethod | WHATWG | W3C | |
| formnovalidate | WHATWG | W3C | |
| formtarget | WHATWG | W3C | |
| max | WHATWG | W3C | |
| min | WHATWG | W3C | |
| multiple | WHATWG | W3C | #625958: Support Uploading Multiple Files for HTML5 Browsers |
| novalidate | WHATWG | W3C | |
| pattern | WHATWG | W3C | #1174766: Support the #pattern FAPI property for native HTML5 pattern attribute |
| placeholder | WHATWG | W3C | #1174694: Allow FAPI usage of the placeholder attribute #1241938: Add support for #placeholder to relevant Field API widgets |
| required | WHATWG | W3C | #1174938: Natively support the HTML5 #required FAPI property |
| spellcheck | WHATWG | W3C | |
| step | WHATWG | W3C | #1174640: Add new HTML5 FAPI element: number |
New HTML5 Form Elements
| Name | Specification | Issues(s) |
|---|---|---|
| keygen | WHATWG | W3C | |
| meter | WHATWG | W3C | |
| output | WHATWG | W3C | |
| progress | WHATWG | W3C |