Description[InputEvent] Dispatch 'input' event for ContentEditable and typing on Input element
This CL sends 'input' event from both user actions and execCommand (for backward interoperability).
'beforeinput' cannot be put in the similar location (e.g. CompositeEditCommand::apply()) because |CompositeEditCommand| has no information about event source.
See discussions about 'input' and execCommand:
https://github.com/w3c/editing/issues/43#issuecomment-227246106
Implementation details:
The old 'input' Event came from 3 places:
1. TypingCommand -> webkitEditableContentChanged -> 'input'
2. Non-typing CompositeEditCommand -> webkitEditableContentChanged -> 'input'
3. Forms set value and checked -> 'input'
This CL changed 1) and 2) to dispatch real InputEvent, and left 3) unchanged.
BUG=585875
Committed: https://crrev.com/e8defdccba078e920f52ac20728d2f918c45b2e6
Cr-Commit-Position: refs/heads/master@{#401505}
Patch Set 1 : Dispatch scoped 'input' event #
Total comments: 15
Patch Set 2 : tkent's review #
Total comments: 1
Messages
Total messages: 28 (20 generated)
|