Closed
Bug 1322110
Opened 8 years ago
Closed 8 years ago
HTML5 input type='number' does not accept patterns defined
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1253606
People
(Reporter: olivier.houdas, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Build ID: 20161129173726
Steps to reproduce:
I'm using the following input area in my form:
<input type='number' pattern='[0-9]+([\.,][0-9]+)?' step='any' lang='fr'>
and I'm trying to type "1.2" in FF French under a French OS
Actual results:
Firefox 50 indicates "Veuillez saisir un nombre." ("Please enter a number.")
Expected results:
Firefox should have accepted my input, as it matches the pattern regex.
Note that
<input type='number' pattern='[0-9]+([\.,][0-9]+)?' step='any' lang='en-us'>
does accept both "1.2" and "1,2" inputs as valid, as expected.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•