Bug 217695
Summary: | `inputType` of `beforeinput` and `input` events fired when choosing a correct spell of the spellchecker is wrong | ||
---|---|---|---|
Product: | WebKit | Reporter: | Masayuki Nakano <masayuki> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ahmad.saleem792, megan_gardner, mike, webkit-bug-importer, wenson_hsieh |
Priority: | P2 | Keywords: | BrowserCompat, InRadar |
Version: | Safari 14 | ||
Hardware: | Mac | ||
OS: | macOS 10.15 |
Masayuki Nakano
1. Go to https://d-toybox.com/studio/lib/input_event_viewer.html
2. Choose "<div contenteditable>"
3. Type "Speeed" into the editor below "Test editor beahvior:"
4. Then, the word should be underlined by the spellchecker.
5. Right click on the word and choose "Speed".
Then, a pair of `beforeinput` and `input` events is fired as expected, but `inputType` is `"insertText"`, although it should be `"insertReplacementText"`.
https://www.w3.org/TR/input-events-2/#interface-InputEvent-Attributes
Maybe related to bug 177657.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/70304509>
sideshowbarker
Nakano-san, Do you know if we have any relevant WPT tests for this? And is the Chrome behavior for this case spec-conforming?
Masayuki Nakano
(In reply to sideshowbarker from comment #2)
> Nakano-san, Do you know if we have any relevant WPT tests for this? And is
> the Chrome behavior for this case spec-conforming?
Unfortunately, there is no WPT for this because there is no way to work with spellchecker UI of the browsers.