Re: Lose Focus When Hidden? (SVG ISSUE-2031)

Hi, Ian-

Ian Hickson wrote (on 2/22/09 2:58 PM):
> On Sun, 22 Feb 2009, Doug Schepers wrote:
>> 
>> Note that there doesn't seem to be a way in HTML to detect which 
>> element, if any, is the currently focused element.  You can do this in 
>> SVG, via the getCurrentFocusedObject() method which returns an event 
>> target, and we suggest that HTML5 do something similar.
> 
> HTML5 adopts IE's activeElement attribute to do this:
> 
>    http://www.whatwg.org/specs/web-apps/current-work/#dom-document-activeelement

Very good.  Perhaps SVG should adopt that as well, or better yet, it
should be folded into the DOM.

Regards-
-Doug Schepers
W3C Team Contact, SVG and WebApps WGs

Received on Sunday, 22 February 2009 20:03:53 UTC