W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2010

[whatwg] oninput for contentEditable

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 03 Mar 2010 21:44:13 -0500
Message-ID: <4B8F1E7D.5000608@mit.edu>
On 3/3/10 9:31 PM, Daniel Danilatos wrote:
> Worth noting, the events should convey the user intent - so, e.g. not
> just "delete chars 5 - 8" but "forward word delete, which is chars 5 -
> 8".

So I have to ask... Why are events _before_ the edit needed?

If we add these, then you have to define what happens when those event 
handlers modify the state of the DOM in arbitrary ways, including 
carrying out operations that spin the event loop, operations that make 
the edit that's about to happen nonsensical, and so forth.  It's a huge 
chunk of spec and implementation complexity.  So I'd like to see some 
very compelling use cases to even consider it.

-Boris
Received on Wednesday, 3 March 2010 18:44:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:21 UTC