Number type input box now accepting string as well with latest update
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: prashantbadgujarpune, Unassigned, NeedInfo)
Details
Attachments
(1 file)
117.53 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Steps to reproduce:
I have updated Firefox to 64 version today.
I can some fields in our UI which used to accept only number.
String or text value not allowed in it.
But after upgrade fields are accepting text as well.
Please find attachment.
Actual results:
It is accepting string values when input type is given number only.
Expected results:
It should accept number only.
Reporter | ||
Comment 1•6 years ago
|
||
Example:
<!DOCTYPE html>
<html>
<body>
<form >
Number: <input id="num"type="number" name="quantity" min="1" max="5">
<input onclick="alert(document.getElementById('num').value
=== '')" type="submit">
</form>
</body>
</html>
Updated•6 years ago
|
Comment 3•6 years ago
|
||
This is supposedly a regression, but it behaves the same in Firefox 63. Is there another behavior change that we're not aware of?
Description
•