Intent to ship in Nightly channel and early Beta: `beforeinput` event and `InputEvent.getTargetRanges()`
327 views
Skip to first unread message
Masayuki Nakano
unread,
Sep 17, 2020, 12:15:13 PM9/17/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-platform
Gecko is the last browser engine which does not support `beforeinput`
event. The event allows web apps to cancel user input **before**
updating the DOM tree, and web apps can modify the DOM tree as they
need. Web apps can know what's going on with `InputEvent.inputType`,
can know what's being inserted with `InputEvent.data` and
`InputEvent.dataTransfer`. They have already released for `input` event.
The new API, `InputEvent.getTargetRanges()` tells web apps where will be
modified with static ranges.
Note that Chrome supports Level 1, Safari supports Level 2 partially.
Due to spec issues of Level 2, we follow Chrome's implementation for now.
Currently landing early timing of the next cycle (83).
This seems unfortunate. How confident are we that our implementation
works like other browsers? Are there blockers other than time to porting
to mochitests to wpt?
Masayuki Nakano
unread,
Sep 17, 2020, 8:52:18 PM9/17/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to James Graham, dev-pl...@lists.mozilla.org
Some of them are portable with the test driver, but some of them may
need to change key combination due to shortcut key differences.
Additionally, most of them are not portable. E.g., correcting a word
with builtin spellchecker, autocomplete, switching text direction, input
from IME, etc.
(FYI: The simple editing cases are tested by the `getTargetRanges()` tests.)