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

Re: Deprecating DOMFocusIn/DOMFocusOut

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 15 Sep 2009 20:43:34 -0400
Message-ID: <4AB034B6.7030000@mit.edu>
To: Travis Leithead <travil@microsoft.com>
CC: "www-dom@w3.org" <www-dom@w3.org>
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 GMT

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