<input type="email"> and Firefox Contacts Add-on
Yesterday Mozilla Labs published the Contacts add-on, which I think is pretty neat. The add-on integrates your existing (Twitter, Gmail and AddressBook.app) contacts into your browser. It's pre-alpha stability, but it seems to work for me.
After installing it, it allows you to use contacts in two new ways:
- Any <input type="email" /> field will now auto-complete with the contacts in your list.
I love seeing these types of bite-size non-obtrusive features getting implemented in the browser.
The <input type="email" /> form element is specified in the HTML5 specification, but it mostly discusses validation & sanitation. It has been supported by Opera for a while, and Safari now does too. Any old browser will also gladly accept type="email", because the behaviour for unknown types has always been to revert to type="text".
So the next time you're asking your users for an email address, consider using type="email", which automatically makes you future compatible when all the browsers get around implementing it.