[w3c/editing] All browsers: Impossible to cancel inputs when they are starting character composition (IME) (Issue #508)

michael created an issue (w3c/editing#508)

https://github.com/user-attachments/assets/0ba63f65-96a9-4c8c-b080-d30e77d37052

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?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/508
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/508@github.com>

Received on Monday, 17 November 2025 14:07:09 UTC