Closed Bug 1519778 Opened 6 years ago Closed 6 years ago

Number type input box now accepting string as well with latest update

Categories

(Core :: Layout: Form Controls, defect)

64 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1398528

People

(Reporter: prashantbadgujarpune, Unassigned, NeedInfo)

Details

Attachments

(1 file)

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.

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>

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Component: Untriaged → Layout: Form Controls
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Resolution: --- → DUPLICATE

This is supposedly a regression, but it behaves the same in Firefox 63. Is there another behavior change that we're not aware of?

Flags: needinfo?(prashantbadgujarpune)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: