Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Natao arisiva ity resaka mitohy ity. Mametraha fanontaniana azafady raha mila fanampiana.

decimal symbol is a comma for input type=number but OS is set to a point

  • 1 valiny
  • 8 manana an'ity olana ity
  • 1 view
  • Valiny farany nomen'i AndrewG2

more options

I have a form with an input <input id="quantity" name="quantity" step="0.01" type="number"> but when I type something like 5.5 it tells me that is not valid. The regional setting in Windows 10 are set to use a point as the decimal symbol, but Firefox will only accept it as a number if I use a comma e.g. 5,5

It also did this on Windows 7. Other browsers do accept the point symbol.

I have a form with an input <input id="quantity" name="quantity" step="0.01" type="number"> but when I type something like 5.5 it tells me that is not valid. The regional setting in Windows 10 are set to use a point as the decimal symbol, but Firefox will only accept it as a number if I use a comma e.g. 5,5 It also did this on Windows 7. Other browsers do accept the point symbol.

Vahaolana nofidina

I have figured out what was causing it. I had declared the language in html as en-ZA. Changing it to en fixed the problem i.e. <html lang="en">

Hamaky an'ity valiny ity @ sehatra 👍 1

All Replies (1)

more options

Vahaolana Nofidina

I have figured out what was causing it. I had declared the language in html as en-ZA. Changing it to en fixed the problem i.e. <html lang="en">

Novain'i AndrewG2 t@