MDN is saying that the attribute inputmode is obsolete since HTML 5.2.
But, even if not a lot implemented, this attribute is really useful, so by what I have to replace it ?
Most of my usage is on mobiles, where type="number" is not always displaying the good keyboard. Even with pattern defined.
Link to MDN : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
See https://github.com/whatwg/html/issues/3290
According to that, Chrome and Firefox are planning to implement inputmode in the not too distant future. At which point, the W3C spec will no doubt catch up. The W3C HTML specs tend to be more conservative in including not-yet-implemented features than the WHATWG Living spec, where inputmode
is still defined.