[Webkit-unassigned] [Bug 166889] beforeinput events should fire before compositionupdate events while editing a composition
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 21 17:28:37 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=166889
--- Comment #5 from Karl Dubost <karlcow at apple.com> ---
As of today, the current spec specifies the order of the event in
https://w3c.github.io/uievents/#events-composition-input-events
5.7.6. Input Events During Composition
During the composition session, the compositionupdate MUST be dispatched after the beforeinput is sent, but before the input event is sent.
Event Type Notes
1 beforeinput
2 compositionupdate
Any DOM updates occur at this point.
3 input
Note: Most IMEs do not support canceling updates during a composition session.
The beforeinput and input events are sent along with the compositionupdate event whenever the DOM is updated as part of the composition. Since there are no DOM updates associated with the compositionend event, beforeinput and input events should not be sent at that time.
Event Type Notes
1 beforeinput Canceling this will prevent the DOM update and the input event.
2 compositionupdate
Any DOM updates occur at this point.
3 input Sent only if the DOM was updated.
4 compositionend
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240322/4216f365/attachment.htm>
More information about the webkit-unassigned
mailing list