joomla/joomla-cms — pull request #1758 by Achal-Aggarwal (2013-08-16 18:45:30+00:00)
Title: New HTML5 attributes and refactored code with test. Feature #31347

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