Only Text Input and Intention Events

Let's bring this conversation full circle. I think the first thing we should do is create a new type of contentEditable that only supports inserting characters by default. If a user types using an IME, keyboard, speech, etc, the browser fires beforeInput with the characters to insert and then inserts them by default. For anything else* the browser fires beforeInput with context data and then does nothing by default. The key is that all types of input can be handled in script by responding to Intention Events, with the exception of IME input, which means only character insertion should have a default behavior. If there are low-level apis we need to make this possible, we'll create them going forward. If this sounds like a reasonable V1, let's get it spec'd and taken to FPWD.

*Things that have no default behavior in V1: newlines, deletion, formatting, pasting, inserting html, etc.

Ben

Received on Tuesday, 25 November 2014 19:11:55 UTC