Closed Bug 1502390 Opened 6 years ago Closed 4 years ago

input date not respecting min max in same behaviour as chrome

Categories

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

63 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1613280

People

(Reporter: pontus, Unassigned)

References

(Blocks 1 open bug)

Details

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

Steps to reproduce:

If you visit https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date 


Actual results:

in firefox, the min - max do not prevent user input exceeding the values

for instance max="9999-12-31" in chrome would only allow you to enter 4 digits as a year not 5, firefox will allow 6 but then just wont validate (makes the box red)



Expected results:

Hopefully firefox could look at chromes behaviour (I am on Chrome version 69.0.3497.100)

and look at their input date parsing
If you do a min="2012-01-01" and max="2012-12-31" chrome will actually *not* allow you to modify the year at all just enter mm - dd
Same if you only want to allow a user to select a day in a month:
min="2018-10-01" and max="2018-10-31" would only allow a user to select a day in October of 2018.

I guess this is more of a feature request and a browsing experience upgrade for just date inputs

I know this is probably not a priority but I really hope that Mozilla considers to implementing somewhat or same way of processing input date min and max as Chrome does, because it really improves the users experience instead of a red box.

Sincerely,
Pontus
Component: HTML: Parser → DOM: Core & HTML
Blocks: datetime
Priority: -- → P3

Duping forward to bug 1613280 to consolidate.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.