Case ce-0034 ยท Scenario scenario-composition-events

Composition events are not fired consistently for all IMEs

OS: macOS Ubuntu 22.04 Device: Desktop or Laptop Any Browser: Safari 120.0 Keyboard: Chinese IME Status: draft
ime composition events safari

Phenomenon

When using certain IMEs (Input Method Editors) like Chinese IME in Safari, composition events (compositionstart, compositionupdate, compositionend) may not fire consistently or may fire in an unexpected order.

Reproduction example

  1. Create a contenteditable div.
  2. Add event listeners for compositionstart, compositionupdate, and compositionend.
  3. Switch to Chinese IME.
  4. Start typing Chinese characters.
  5. Observe which events fire and in what order.

Observed behavior

  • In Safari on macOS with Chinese IME, composition events may not fire for all keystrokes.
  • The event order may be inconsistent.
  • Some composition operations may complete without firing compositionend.

Expected behavior

  • Composition events should fire consistently for all IMEs.
  • The event order should be predictable: compositionstart โ†’ compositionupdate (multiple) โ†’ compositionend.
  • All composition operations should properly signal their completion.

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: macOS Ubuntu 22.04
Device: Desktop or Laptop Any
Browser: Safari 120.0
Keyboard: Chinese IME
Your environment

Use this editable area to reproduce the described case.

Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.