[UI Events][Input Events] Ship `beforeinput` event and `InputEvent.getTargetRanges()` in Release channel and Beta channel
Categories
(Core :: DOM: Events, task, P2)
Tracking
()
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
(Keywords: dev-doc-needed)
Attachments
(1 file)
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Intent to ship: https://groups.google.com/g/mozilla.dev.platform/c/C_92-abaiuw
Updated•4 years ago
|
Comment 3•4 years ago
|
||
bugherder |
Hi - I'm just checking the MDN docs for this.
It's still behind a pref for me in both 87 & 88 - can I confirm it'll be shipped in 87 still behind pref dom.input_events.beforeinput.enabled - thanks!
Assignee | ||
Comment 5•4 years ago
|
||
(In reply to Ruth from comment #4)
It's still behind a pref for me in both 87 & 88
Do you mean that the pref is false by default in your environment? It should be true by default. And the pref won't be gone until spending a couple of releases after shipping it because disabling it is useful to check whether broken web apps are caused by beforeinput
or not.
(In reply to Masayuki Nakano [:masayuki] (he/him)(JST, +0900)(Still not recoverd perfectly) from comment #5)
Aha! Thank you so much for clarifying - yes it is true by default ☺️
Assignee | ||
Comment 7•4 years ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]:
This makes web developers implement richtext editor with contenteditable
much easier. And using this can cut off the code to support Gecko with the other events, so, the web may become faster.
[Affects Firefox for Android]:
Yes.
[Suggested wording]:
Supports new editing API, beforeinput
event and InputEvent#getTargetRanges
which allow web apps to override text edit behavior before browser modifies the DOM tree.
[Links (documentation, blog post, etc)]:
https://developer.mozilla.org/docs/Web/API/HTMLElement/beforeinput_event
Comment 8•4 years ago
|
||
Unless this is needed on the user-facing release notes for some reason I think I'll leave this to the MDN notes.
Description
•