User:Mounir.lamouri/HTML5 Forms

From MozillaWiki
< User:Mounir.lamouri
Revision as of 14:45, 30 March 2010 by Mounir.lamouri (talk | contribs) (add pending review in the list summary)
Jump to navigation Jump to search

HTML5 Forms is a part of the HTML5 specifications about forms. It introduces new elements, and new input types which aim to help web developers to not re-invent what is already well known. For example, with HTML5 Forms, web developers will not have to write javascript code to tell you a field is required or to check your email address is valid.

Implementation status

Wikipedia offers a non-exhaustive overview of the implementation for the main layout engines: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29#Form_elements_and_attributes

A comparison between the different browsers: http://www.findmebyip.com/litmus/#html5-forms-inputs

Priorities

In an ideal word, it would be great to begin with missing listed elements and content implementation of new input types. Then, constraint validation API and new attributes would be doable in one shot instead of implementation a part of the specification then adding what is specific to the new element/input type.

Listed Elements

New Input Types/States

  • search
  • url
  • telephone
  • date and time
  • date
  • month
  • week
  • time
  • local date and time
  • number
  • range
  • color

Constraint Validation API

There is a main bug about the API implementation: bug 345624

New attributes

foo

Non-listed elements

  • progress
  • meter

Specific UI for new input types

bar

Summary

Name Type Description Bug ID(s) Status
Placeholder New Attribute The placeholder shows a hint to the user bug 457800 Done
Maxlength New attribute Limit the text length of an input or textarea element bug 535043 bug 536891 bug 536895 Done
Search New input type New input type for search boxes bug 456229 Pending review
Autofocus New attribute Focus an element on the page load bug 546995 Pending review
Button type behavior Misc/Bug fix Fix the button type behavior to fit the new specifications bug 551670 Pending review
Select size relation with multiple Misc/Bug fix Set the default element size depending on the multiple attribute bug 551846 Pending review
Legend element and form attribute Misc/Bug fix Legend element form has to be the fieldset form or null bug 555567 Pending review
Constraint Validation API Misc Implement the constraint validation API bug 345624 Pending review