Bug 165197
| Summary: | |execCommand()| shouldn't fire 'beforeinput' | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chong Zhang <chongz> |
| Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, enrica, rniwa, wenson_hsieh |
| Priority: | P2 | ||
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Chong Zhang
According to https://github.com/w3c/editing/issues/43 'beforeinput' should only be fired for user actions. Firing it for |execCommand()| might cause some nested events.
Or do we want to change the spec?
Reproduce Steps [Release 18 (Safari 10.1, WebKit 12603.1.12)]:
1. Go to https://jsbin.com/tevepaw
2. Focus the text
3. Wait for 2 seconds
4. Notice that both 'beforeinput'/'input' will be logged
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
*** Bug 165198 has been marked as a duplicate of this bug. ***