W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2012

[editing] input event should have a data property WAS: [D3E] Where did textInput go?

From: Ojan Vafai <ojan@chromium.org>
Date: Wed, 4 Apr 2012 12:07:18 -0700
Message-ID: <CANMdWTsYjYqzdQ2Lsa3RyweXDvKxJ5SSZ1gQqspTH0U6baKP3g@mail.gmail.com>
To: Andrew Oakley <andrew@ado.is-a-geek.net>, Aryeh Gregor <ayg@aryeh.name>
Cc: Anne van Kesteren <annevk@opera.com>, WebApps WG <public-webapps@w3.org>
BCC: www-dom
CC: public-webapps

The original proposal to drop textInput included that beforeInput/input
would have a data property of the plain text being inserted. Aryeh, how
does that sound to you? Maybe the property should be called 'text'? 'data'
is probably too generic.

On Wed, Apr 4, 2012 at 11:01 AM, Andrew Oakley <andrew@ado.is-a-geek.net>wrote:

> On Wed, 04 Apr 2012 18:58:49 +0200
> "Anne van Kesteren" <annevk@opera.com> wrote:
>
> > On Wed, 04 Apr 2012 18:54:46 +0200, Andrew Oakley
> > <andrew@ado.is-a-geek.net> wrote:
> > > The textInput event seems to have been removed from the latest versions
> > > of DOM 3 Events but I can't find any real explanation as to why it
> > > disappeared, or if it has been replaced by anything.
> >
> > See https://www.w3.org/Bugs/Public/show_bug.cgi?id=12958 Conclusion was
> > emailed to this list in
> > http://lists.w3.org/Archives/Public/www-dom/2012JanMar/0225.html
>
> Thanks, I must have missed that.  The reason seems to be incompatible
> implementations and that other events can be used for the same thing.
>
> How would content now determine what text was input?  The input event
> in HTML5 appears to just be a simple event, and the keyboard events are
> obviously not sufficient (copy+paste being the most obvious thing that
> could be missed but there are also the usual IME issues).
>
> I realise this might be possible with the editing APIs, but that seems
> excessively complicated (and not supported by any browsers as far as I
> know) way of getting some fairly basic information.
>
> --
> Andrew Oakley
>
>
Received on Wednesday, 4 April 2012 19:08:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:09 GMT