Closed Bug 1719010 Opened 4 years ago Closed 4 years ago

<input type=time> does not expose partial values during input

Categories

(Core :: Layout: Form Controls, defect)

Firefox 90
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: xuerian, Unassigned)

References

(Blocks 1 open bug)

Details

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

Steps to reproduce:

Create <input type=time>

Attempt to access .value (or any other documented property) while a partial value is entered

Actual results:

Partial value is not exposed

Expected results:

Partial value should be exposed

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

Component: Untriaged → Layout: Form Controls
Product: Firefox → Core

I think this is per spec:

User agents must not allow the user to set the value to a non-empty string that is not a valid time string. If the user agent provides a user interface for selecting a time, then the value must be set to a valid time string representing the user's selection.

From https://html.spec.whatwg.org/#time-state-(type=time)

Other browsers also match this behavior afaict.

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