W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2006

[whatwg] oninput event - pasting

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 8 Jun 2006 22:55:02 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0606082253260.10282@dhalsim.dreamhost.com>
On Thu, 8 Jun 2006, Shadow2531 wrote:
>
> <http://whatwg.org/specs/web-forms/current-work/#the-change>
> 
> "this specification introduces the input event. This event is fired on
> a control whenever the value of the control changes due to input from
> the user"
> 
> Does "due to input from the user" mean that *every*, *direct* action
> the user *makes on the control* (that changes its value) causes the
> event to fire?
> 
> Specifically, if I have this:
> <textarea oninput="alert('test')"></textarea>
> 
> , and right-click and paste into the textarea or ctrl+v into the
> textarea to paste,  or select and cut, should the event fire?

Yes.

Another part of the spec mentions that the UA may coallesce multiple 
inputs into one input event, so e.g. if you type very fast it might not 
fire one input event per character, it might fire one every few hundred 
milliseconds instead.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 8 June 2006 15:55:02 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC