Closed Bug 1605914 Opened 6 years ago Closed 6 years ago

HTMLElement: input event / oninput event does not match W3C specifications, it does not fires only on changed value

Categories

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

71 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: colormatch, Unassigned)

Details

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

Steps to reproduce:

W3C:
input event should fire when user commits a value
https://www.w3.org/TR/input-events-1/#event-type-input

MOZ:
input event is fired every time the value of the element changes
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event

Ex:
Input events are fired only when the user changes the color, but the user has selected the same as the current color and pressed OK, the event does not fire.
https://jsfiddle.net/8sgu73wk/

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

The spec says
"when the user changes the element's value, the user agent must queue a task to fire an event named input at the input element"

https://html.spec.whatwg.org/#common-input-element-events is the spec browsers follow.

Please reopen this bug if I misunderstood something here.

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