Bug 165197 - |execCommand()| shouldn't fire 'beforeinput'
Summary: |execCommand()| shouldn't fire 'beforeinput'
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 165198 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-11-30 08:16 PST by Chong Zhang
Modified: 2016-12-01 10:34 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chong Zhang 2016-11-30 08:16:03 PST
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
Comment 1 Alexey Proskuryakov 2016-12-01 10:34:38 PST
*** Bug 165198 has been marked as a duplicate of this bug. ***