[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 00:17:02 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=166889

--- Comment #2 from Karl Dubost <karlcow at apple.com> ---
Created attachment 470454

  --> https://bugs.webkit.org/attachment.cgi?id=470454&action=review

beforeinput and composition events logging

Steps to Reproduce:
1. load the testcase
2. Open the devtools on the console
3. focus In the textarea 
4. Type Option + e
5. Release 
6. Type e

Result: 
é

Check the order of events for each browser.

Tested with 
Safari                     17.4          19618.1.14.11.1
Firefox Nightly            125.0a1       12524.3.12
Google Chrome Canary       125.0.6369.0  6369.0


Safari:
compositionstart  CompositionEvent {data: "",   initCompositionEvent: function, 
compositionupdate CompositionEvent {data: "´",  initCompositionEvent: function
beforeinput       InputEvent       {data: "´",  inputType: "insertCompositionText", 
beforeinput       InputEvent       {data: null, inputType: "deleteCompositionText"
beforeinput       InputEvent       {data: "é",  inputType: "insertFromComposition"
compositionend    CompositionEvent {data: "é",  initCompositionEvent: function


Firefox:
compositionstart  compositionstart  {data: ""
compositionupdate compositionupdate {data: "´"
beforeinput       beforeinput       {data: "´", isComposing: true, inputType: "insertCompositionText"
compositionupdate compositionupdate {data: "é"
beforeinput       beforeinput       {data: "é", isComposing: true, inputType: "insertCompositionText"
compositionend    compositionend    {data: "é" 


Chrome: 
compositionstart  CompositionEvent {data: ''
compositionupdate CompositionEvent {data: '´'
beforeinput       InputEvent       {data: '´', isComposing: true, inputType: 'insertCompositionText'
compositionupdate CompositionEvent {data: 'é', 
beforeinput       InputEvent       {data: 'é', isComposing: true, inputType: 'insertCompositionText'
compositionend    CompositionEvent {data: 'é',

-- 
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/20240321/d2c45efd/attachment.htm>


More information about the webkit-unassigned mailing list