Firefox always shows any digital input as NAN

I installed fresh fresh windows 8.1 (64 bit) and then installed Firefox 33.1.1 without any add-ons or extensions after that. but Firefox shows every numerical input (type = "number") as NAN even without JavaScript code. (another browser has no problems with this). for example, the code below shows the following:

 <!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> </head> <body> <form method="post" action=""> <input type="number" /> </form> </body> </html> 

enter image description here

+5
source share
3 answers

This is a bug in Firefox!

I think this problem exists for the Persian language (or possibly Arabic)

To fix this problem on Windows, set the Decimal character to the dot " . "

Note: Region> Advanced Setup

But, in my opinion, now the best solution for enter type = "text" enter

+3
source

I see that this happens in Firefox only when the Windows settings in the Control PanelLanguageChange date, time or number formatsThe format is set to Persian (I have Win 8.1 + FireFox 39.0-fa)

+2
source

You can also help yourself by adding more content to your HTML, for example by adding encytpye to a form and more:

 <form method="post" action="" enctype="multipart/form-data"> <input type="number" name="larry" min="0" max="100" value=""> </form> 

Try this syntax and see if it is fixed.

0
source

Source: https://habr.com/ru/post/1208033/


All Articles