HTMLElement: input event / oninput event does not match W3C specifications, it does not fires only on changed value
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
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/
![]() |
||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
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.
Description
•