Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Attribute inputmode : "obsolete since HTML5.2", How to replace it?

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

like image 859
MathKimRobin Avatar asked Mar 18 '26 02:03

MathKimRobin


1 Answers

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.

like image 161
Alohci Avatar answered Mar 20 '26 18:03

Alohci



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!