Closed Bug 1726546 Opened 4 months ago Closed 3 months ago

datetime-local min attribute misused

Categories

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

Firefox 93
defect

Tracking

()

VERIFIED FIXED
93 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox91 --- unaffected
firefox92 --- unaffected
firefox93 --- verified

People

(Reporter: Luke, Assigned: emilio)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

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

Steps to reproduce:

If you set the minimum attribute to a value with a non midnight time value. Firefox doesn't let you select the date.

Navigate the below URL:
data:text/html,<input type="datetime-local" min="2021-08-19T12:22">

Actual results:

You cannot select the 19th of August as a value.

Expected results:

You should be able to select the 19th of August, which is possible in Chrome and Safari.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Flags: needinfo?(emilio)
Assignee: nobody → emilio
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Regressions: 1283388
Flags: needinfo?(emilio)
Regressed by: 1283388
No longer regressions: 1283388

That way it does the right thing for datetime-local as well.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c86dd2d20421
Let DateKeeper compare the minimum at the end of the day, rather than at the beginning. r=smaug
Regressions: 1727058
Severity: -- → S3
Priority: -- → P2
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
Flags: qe-verify+

Reproduced with 93.0a1 (20210819214942) on Windows 10x64.
Verified fixed with 93.0b9 (20210923190449) on Windows 19x64, macOS 10.15 and Ubuntu 21.05. The date of 19 Aug 2021 can be selected.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.