joomla/joomla-cms — pull request #1842 by Achal-Aggarwal (2013-08-28 15:05:56+00:00)
Title: GSOC Project 'Improve Form Fields' adding new HTML5 attributes and types...

... in form fields and unit tests.

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31347

Instructions
Just merge that code branch and use HTML5 attribute.
For attribute
1. placeholder : use hint=”Placeholder text” to set placeholder
2. required : use required=”true” or required=”required” or required=”1” to make field required
3. autocomplete : use autocomplete=”false” or autocomplete=”off” or autocomplete=”0” to disable autocomplete.
4. autofocus : use autofocus=”true” or autofocus=”on” or autofocus=”1” to set focus automatically to the field.
5. spellcheck : use spellcheck =”false” or spellcheck =”off” or spellcheck =”0” to disable spellcheck.
6. multiple : use multiple=”true” or multiple=”required” so that field can accept multiple values of its type.
There is little bit refactoring with respect to boolean attributes (disabled, readonly), so everything should work as it does previously.

For the non-supported browsers, fallback js is automatically loaded to support it
Usage of some common attributes are on http://docs.joomla.org/Text_form_field_type/3.2

Install this component and test new field attributes.
https://docs.google.com/file/d/0B3rA3UKTXpVsV2ttNUE5MGNqWkU/edit?usp=sharing