Skip to content

All browsers: Add ability to cancel character composition (IME) at the very beginning #508

@michael

Description

@michael
composition-events-leak.mov

Why is this a problem?

  • My editor (and possible a lot of other editors/apps) have no way to prevent unintended DOM changes when the user presses a dead key when a contenteditable has a focus
  • Particularly in reactive frameworks this is a problem, because React/Svelte and co, assume that all state changes happen on the component source data, and then propagate to the DOM, instead of the DOM being manipulated directly (without the framework noticing)

I don't see a reason why you shouldn't be able to cancel all inputs onbeforeinput, even those that would start a character composition workflow?

Could Blink/Webkit/Gecko & others change this behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    TPAC2025Topics for discussion at TPAC 2025

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions