Re: [w3c/editing] [Input Events] Why are insertText and replaceContent separate events? (#124)

insertText is specifically limited to text. This used to be "insertCharacter" which maybe gave a better explanation for what was happening. In the JavaScript part one will likely deal quite differently with characters the user types and content that can potentially contain more complex DOM structures.

So if the two were joined together, JavaScript authors would likely have to go through the inserted content to try to figure out if this is richtext content or whether it is about plaintext characters/text. 

See also discussion at https://github.com/w3c/editing/issues/118

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/124#issuecomment-211944715

Received on Tuesday, 19 April 2016 14:27:47 UTC