Where inputmodes are not supported (eg, on desktop machines), then merely allowing text to be entered is a pass.
Where inputmodes are supported (eg, on mobile phones), they should be adhered. If, for instance, 'digits' are requested, the user agent should simplify the entry of numbers as much as possible.