I am trying to implement a cross browser consistent float input type in HTML5. Sofar i have this:
<input type="number" step="any" lang="en-150">
The problem is, all major browsers behave different regarding the input format (comma or period - 1.55 or 1,55).
- Chrome seems to be the only browser, which works always, also without of a 'lang' attribute.
- Firefox did not support period (like "1.5") at all, until i added lang="en-150". Now Firefox behaves also like Chrome.
- But i have still problems with IE (v11). It works with periods, but not with comma. HTML5 validations do not work (i.e. step="0.1", you can still enter sth. like "1,111") + when the form is submitted, it submits just the main number ("1,99" submits "1").
How can i also handle commas on IE?