Bug 165198

Summary: |execCommand()| shouldn't fire 'beforeinput'
Product: WebKit Reporter: Chong Zhang <chongz>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: enrica, rniwa, wenson_hsieh
Priority: P2    
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

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