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

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

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 22 Feb 2009 03:58:49 +0000 (UTC)
To: Doug Schepers <schepers@w3.org>
Cc: Jonas Sicking <jonas@sicking.cc>, Olli Pettay <Olli.Pettay@helsinki.fi>, HTML WG <public-html@w3.org>, www-svg <www-svg@w3.org>
Message-ID: <Pine.LNX.4.62.0902220358050.6186@hixie.dreamhostps.com>
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:


Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 22 February 2009 03:59:32 GMT

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