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.

-Doug Schepers
W3C Team Contact, SVG and WebApps WGs
Received on Sunday, 22 February 2009 20:03:53 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:42 UTC