Should not be able to type letters in a number form field
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
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
Updated•5 years ago
|
Comment 1•5 years ago
|
||
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.
Comment 2•5 years ago
|
||
(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.
Comment 3•5 years ago
|
||
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 :)
Description
•