Closed Bug 1655555 Opened 4 years ago Closed 4 years ago

Should not be able to type letters in a number form field

Categories

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

Firefox 81
defect

Tracking

()

RESOLVED DUPLICATE of bug 1398528

People

(Reporter: cjmarini68, Unassigned)

Details

(Keywords: parity-chrome)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36

Steps to reproduce:

Create a form with <input type="number">
Bring up form in Firefox
Try to type non-numeric characters in field

Actual results:

Firefox accepts letters in number field

Expected results:

Firefox should filter out letters and only accept numbers

Component: Untriaged → Layout: Form Controls
Keywords: parity-chrome
Product: Firefox → Core

Why not? We accept localized numbers which also include number separators and so on.

This is really long-standing behavior, but I always thought Firefox's behavior was more reasonable than Chrome's.

Component: Layout: Form Controls → DOM: Core & HTML

(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)

Component: Layout: Form Controls → DOM: Core & HTML

Bug 1398528 that this is a duplicate of is in Layout: Form Controls.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

This is not a layout issue. Layout renders whatever the DOM value is. The fix for this bug if we want to fix it is in DOM :)

You need to log in before you can comment on or make changes to this bug.