Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order and cancelation behavior of events in composition disagrees with UI Events #135

Open
andreubotella opened this issue Apr 8, 2022 · 0 comments
Assignees

Comments

@andreubotella
Copy link
Member

andreubotella commented Apr 8, 2022

According to this spec, when the state of the composition context is updated, a compositionupdate event is fired, followed by beforeinput and input. Furthermore, none of those events is cancelable. However, according to the UI Events spec, beforeinput fires first and can be canceled, and if not canceled, the compositionupdate and input events are fired. If beforeinput is canceled, then, the composition state would presumably go back to the previous state.

Taking a look at what browsers actually do, it seems like Chromium follows UI Events's order of events, but canceling beforeinput in a composition context does nothing. Firefox and WebKit (tested on Epiphany / GNOME Web) follow this spec, except that WebKit also seems to implement #134.

I wanted to confirm that this has been considered and that the UI Events spec is known to be wrong on this point before trying to update it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants