Closed Bug 1759022 Opened 3 years ago Closed 3 years ago

input type number allows non digit

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 91
defect

Tracking

()

RESOLVED DUPLICATE of bug 1398528

People

(Reporter: loviji, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

At MDN docs I've get information about input type=number.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number
So, at this document I'm trying type non digit numbers on input elements, firefox allows it, but google chrome not.

Actual results:

I think Firefox browser should automatically disallow to type non digit numbers on input type number, but it allows

Expected results:

Type in input 123bcv , result shout be 123, not 123bcv

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.