-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EditContext] Don't populate getTargetRanges for deletions
In [1] the issue was raised that getTargetRanges() in beforeinput is not interoperable across browsers for deletions. We don't want to include non-interoperable behaviors in EditContext, so return an empty array for getTargetRanges() when beforeinput is received for deletions in EditContext. We may revisit this later on and start providing a range if interoperable behavior can be designed. [1] w3c/input-events#146 Bug: 999184 Change-Id: Iac697f89a7c7ecee57c850e7b929e42670c10e32 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4985470 Reviewed-by: Koji Ishii <[email protected]> Commit-Queue: Dan Clark <[email protected]> Reviewed-by: Anupam Snigdha <[email protected]> Cr-Commit-Position: refs/heads/main@{#1217018}
- Loading branch information
1 parent
9e9ff47
commit 818b3f8
Showing
1 changed file
with
60 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters