diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

Chrome Adds Experimental “Autocomplete Type” Attribute for Form Fields

Jan262012

Chrome Adds Experimental “Autocomplete Type” Attribute for Form Fields

Google Chrome now added support for an experimental new “autocomplete type” attribute for form fields that allow web developers to unambiguously label text and select fields with common data types such as ‘full-name’ or ‘street-address’ and guarantee that their site’s forms work correctly with Chrome Autofill and other form-filling providers, announced Ilya Sherman, Software Engineer.

Chrome gets experimental autocomplete type attribute

For now, this new attribute is implemented in Chrome as x-autocompletetype to indicate that this is still experimental and not yet a standard, similar to the webkitspeech attribute released last summer.

“With this attribute, web developers can drive conversions on their sites by marking their forms for auto-completion without changing the user interface or the backend,” Sherman added.

Writing furhter he notes, “We’ve been working on this design in collaboration with several other autofill vendors. Like any early stage proposal we expect this will change and evolve as the web standards community provides feedback, but we believe this will serve as a good starting point for the discussion on how to best support autofillable forms in the HTML5 spec.”

Just add an attribute to the input element, for example an email address field might look like:

For more information, you can read the full text of the proposed specification.

Share This Story, Choose Your Platform!