Re: Is 'DOMFocusIn' supported?

Martin Honnen <[email protected]> Sun, 18 Jul 2010 19:05:05 +0200
Newsgroups gmane.comp.mozilla.devel.dom
Organization Liberty Development
Message-ID <[email protected]>
Stanimir Stamenkov wrote:
> I see the 'DOMFocusIn' event type listed on two pages on DMO:
> 
> https://developer.mozilla.org/en/DOM_Events#DOMFocusIn
> https://developer.mozilla.org/en/DOM_Client_Object_Cross-Reference/DOM_Events 
> 
> 
> I see it also listed in the event list of the Event Spy [1] extension.
> 
> I bascially have an HTML page with some focusable elements (form 
> controls, hyper-links) and register an event handler on the #document 
> node like:
> 
> document.addEventListener("DOMFocusIn", myHandler, false);
> 
> My event handler gets never invoked.  The same thing appears to work in 
> Opera and Safari.  Is 'DOMFocusIn' supported and specifically in web pages?

It doesn't seem to be implemented in Mozilla, as 
https://bugzilla.mozilla.org/show_bug.cgi?id=396927 suggests. The 
comments there conclude that you could instead use a capturing event 
listener for the focus event.


-- 

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/