Add better support for html5 input elements