Re: Deprecating DOMFocusIn/DOMFocusOut

On 7/23/09 1:12 PM, Anne van Kesteren wrote:
> On Thu, 23 Jul 2009 05:06:28 +0200, Doug Schepers<>  wrote:
>> As I said, I added focusin and focusout events in the same draft as I
>> deprecated DOMFocusIn and DOMFocusOut, because focusin and focusout are
>> supported by IE.  I chose to deprecate DOMFocusIn and DOMFocusOut in
>> favor of focusin and focusout because they both bubble, unlike focus and
>> blur.

focusin isn't like focus or DOMFocusIn.
 From MSDN
"[focusin] Fires for an element just prior to setting focus on that 

focusout doesn't sound too useful
"[focusout ]Fires for the current element with focus immediately after 
moving focus to another element. "
So quite close to blur, though blur fires just before firing focus on 
the new element.
I think we may want to have an event which fires before focus has moved 
to anywhere.

Need to test how all the focus handling events work in IE
and elsewhere; when does the cursor actually move to the new place


Received on Thursday, 23 July 2009 11:04:52 UTC