-
Notifications
You must be signed in to change notification settings - Fork 51
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
beforeinput
and compositionupdate
event order
#354
Comments
So you want the order to be this right? (highlighted move) keydown |
Nit: I think both |
It looks like we have agreement here on the order, so I'll be updating the spec. |
Please don't update it yet. Chromium has not confirmed if this is web compatible. |
My understanding (from #353 (comment)) is that Firefox and Safari already ship with this event ordering. What is the work involved in checking web compatablity? Do we have a tracking bug for this? |
Tracked here. |
Per w3c/uievents#354, we should fire compositionupdate event before the beforeinput event so that the event order is the same as other browsers such as Safari and Firefox. Bug: 1484762 Change-Id: I4462d2cc214d9e7f9a40c83d54d553d3379fab48 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4878553 Reviewed-by: Xianzhu Wang <[email protected]> Reviewed-by: Hidehiko Abe <[email protected]> Commit-Queue: Siye Liu <[email protected]> Reviewed-by: Darren Shen <[email protected]> Cr-Commit-Position: refs/heads/main@{#1200044}
@chrishtr the chromium fix has now reached Stable (assuming it shipped in 119). I searched for "beforeupdate" and "compositionupdate" in https://bugs.chromium.org but didn't find relevant recently filed bugs. |
Agreed! I double checked and couldn't find any issues either. Looks like the change was web compatible. @garykac could you update the spec? Thanks! |
The feature flag was introduced in crrev.com/1200044 to guard the new behavior of compositionupdate event firing order. The new behavior was shipped in 119. There is no issue filed against the behavior since then and is confirmed in w3c/uievents#354 (comment). Change-Id: Ib90621f8fd1236d9cadd08782150245c19c46971 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5106828 Reviewed-by: Xianzhu Wang <[email protected]> Commit-Queue: Siye Liu <[email protected]> Reviewed-by: Sanket Joshi <[email protected]> Cr-Commit-Position: refs/heads/main@{#1235290}
Originally posted by @masayuki-nakano in #353 (comment)
The event order of typing
´a
in an input field in Chrome is (see #353 (comment)):cc @chrishtr
The text was updated successfully, but these errors were encountered: