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).

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

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