W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2009

Re: Deprecating DOMFocusIn/DOMFocusOut

From: Doug Schepers <schepers@w3.org>
Date: Thu, 23 Jul 2009 07:47:55 -0400
Message-ID: <4A684DEB.7020106@w3.org>
To: "www-dom@w3.org" <www-dom@w3.org>
Hi, Olli-

Olli Pettay wrote (on 7/23/09 7:24 AM):
> On 7/23/09 2:04 PM, Olli Pettay wrote:
>> focusout doesn't sound too useful
>> "[focusout ]Fires for the current element with focus immediately after
>> moving focus to another element. "
> Based on testing the documentation is wrong.
> http://mozilla.pettay.fi/moztests/focus.html
>
> when moving focus from 1st field to the second one IE dispatches
> focusout to the first one, then focusin to the second field, then
> blur to the first field and then focus to the second one.

Yes, the documentation is a bit wrong then... But that's actually the 
behavior I would expect, from what I understood about focusout and 
focusin; they fire the event before the focus changes, giving the 
opportunity for interception, right?

Regards-
-Doug Schepers
W3C Team Contact, SVG and WebApps WGs
Received on Thursday, 23 July 2009 11:48:06 GMT

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