[whatwg] focus change inside keypress event handler

Michael A. Puls II shadow2531 at gmail.com
Mon Mar 8 18:41:39 PST 2010

On Mon, 08 Mar 2010 20:17:45 -0500, Ian Hickson <ian at hixie.ch> wrote:

> On Tue, 27 Oct 2009, Michael A. Puls II wrote:
>> With:
>> <p><input onkeypress="this.nextSibling.focus()"><input></p>
>> , if you type a character in the first field, should the character be  
>> entered
>> in the second field or the first?
> The thread that started with the above question seemed to conclude that
> the DOM3 Events spec requires that the focus change not affect which
> element receives the event, which is also my understanding of the
> situation. The thread did not seem to suggest any further changes were
> needed, so I haven't changed anything in HTML5. Please let me know if
> there is something in HTML5 that needs changing for this.
> Cheers,

Still waiting for Doug and others to comment on my findings in this  
thread. But, yes, nothing to change in the spec so far.


More information about the whatwg mailing list