W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2010

Re: [whatwg] focus change inside keypress event handler

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 9 Mar 2010 01:17:45 +0000 (UTC)
To: "Michael A. Puls II" <shadow2531@gmail.com>
Cc: whatwg <whatwg@whatwg.org>, www-dom@w3.org
Message-ID: <Pine.LNX.4.64.1003090116190.21376@ps20323.dreamhostps.com>
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.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 9 March 2010 01:18:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:56 UTC