added limited support for HTML5 inputs