Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

Input type="number": why "wrong" locale

  • 1 risposta
  • 1 ha questo problema
  • 11 visualizzazioni
  • Ultima risposta di cor-el

more options

Situation See fiddle: https://jsfiddle.net/ssczo/gh47Lfs7/2/ I do not understand why I have to set de language specific on the control, like on the 4. input in the sample. I suspect that also version 3 should work, if i set my browser to de-CH or if i set my OS to de-CH. Version 3 not accepts "point" which is the default decimal separator for de-CH

I'm confused about from where the browser takes the language?

See my browser settings are the attchement.

Situation See fiddle: https://jsfiddle.net/ssczo/gh47Lfs7/2/ I do not understand why I have to set de language specific on the control, like on the 4. input in the sample. I suspect that also version 3 should work, if i set my browser to de-CH or if i set my OS to de-CH. Version 3 not accepts "point" which is the default decimal separator for de-CH I'm confused about from where the browser takes the language? See my browser settings are the attchement.

Modificato da stephu il

Tutte le risposte (1)

more options

This looks like a nightmare to implement, especially when it comes to browser support. See e.g.: https://ctrl.blog/entry/html5-input-number-localization