Re: Deprecating DOMFocusIn/DOMFocusOut

On 9/15/09 4:21 PM, Travis Leithead wrote:
> Do we really need eventTarget? It seems to me that focusin/focusout can remain UIEvents, and if web developers want to know what the "releatedTarget" is, then can simply register for both: focusout is the element loosing focus, focusin is the element gaining focus. You don't even have to know which Node to register them on because these events bubble, you can simply listen at the document level.

That doesn't really work reliably if there are focus/blur listeners 
involved  that call focus()/blur() on various DOM nodes (something 
that's actually pretty common).

-Boris

Received on Wednesday, 16 September 2009 00:44:22 UTC