You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.
The definition of <input type="number"> explains that only valid floating-point numbers should be accepted.
That said, it seems that browsers do not always honour this requirement though.
It seems that browsers may not consistently recognise this requirement though. With thanks to @IanPouncey for tests, it seems that Safari and Firefox accept any non-numeric character, whilst Chrome accepts "e" but no other non-numeric character.
I think this issue seems to be with the browsers, not the HTML specification, though perhaps the definition could be improved?
To be clear, Chrome accepts 'e' (or 'E') as exponent shorthand (i.e. 3e5 for 3×10^5), not as a constant. It validates the former if it is in range, but not the latter as a number.
Consider the below html input type "number"
Since, its a number type it will allow you to type number only, but if you type any alpha,special character it will not allow you enter.
But i found that letter "e" is allowed in the type .
Please clarify.
The text was updated successfully, but these errors were encountered: