W3C home > Mailing lists > Public > public-html@w3.org > February 2009

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

From: Doug Schepers <schepers@w3.org>
Date: Mon, 23 Feb 2009 07:03:38 +1100
Message-ID: <49A1AF9A.70506@w3.org>
To: Ian Hickson <ian@hixie.ch>
CC: Jonas Sicking <jonas@sicking.cc>, Olli Pettay <Olli.Pettay@helsinki.fi>, HTML WG <public-html@w3.org>, www-svg <www-svg@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:32 GMT