[w3c/editing] Should beforeinput and input always come together? (#248)

The specification currently reads:

> Input events are sent before (beforeinput event) and after (input event) a user attempts to edit the markup. 

Notice the word "attempts" - which can be read as that these events should be triggered if the user attempts to do something even if that something is impossible (such as undo when the undo stack is empty). This formulation seems to say that each beforeinput event should be followed by an input event - unless the beforeinput event has been cancelled.

Testing of the implementation Chrome shows that it has been implemented differently.  Beforeinput events for actions that cannot actually be executed are not followed by an input event. See https://wpt.fyi/results/input-events/input-events-typing.html?label=experimental&label=master&aligned

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

Received on Tuesday, 5 May 2020 19:24:19 UTC