I\'m trying to get regex pattern in input type number to show only numbers and dots.
I tried something like this.
Not every input type and attribute is supported in all browsers. In general, most modern browsers from IE10+ include basics such as email and number.
The browser will revert to a standard text input when a specific type and ignore attributes when those values are not supported.

So you should use a good regular expression pattern.
for example
supported
(Sources: caniuse.com, DeviceAtlas, mobilehtml5.org)
But the pattern attribute is supported in Internet Explorer 10, Firefox, Opera, and Chrome. And is not supported in Internet Explorer 9 and earlier versions, or in Safari.