Notice that using input type="number" can display a numeric keyboard as below:

Is it possible to use input type="text" to display the same numeric keyboard? I do not want to display a number pad using pattern="\d*" because it is possible that the value will contain a decimal place.
The reason I would like to use input type="text" instead of input type="number" is that I cannot get back the value if I input a non-number for a number field. For example, if I input ABC, it will become empty automatically. It seems to me that using input type="text" will be easier for this kind of control.




type="number"?<input type="text" inputmode="numeric" name="whatever">However, it's not listed in HTML5, so I guess it's not currently implemented much if at all.inputmode="numeric"no longer works.