add support for input whose type is number

Add support for input element whose type is number which is a HTML5 new stuff