- From: Ian Hickson <ian@hixie.ch>
- Date: Fri, 13 Feb 2009 01:37:28 +0000 (UTC)
- To: Jonas Sicking <jonas@sicking.cc>
- Cc: Olli Pettay <Olli.Pettay@helsinki.fi>, Doug Schepers <schepers@w3.org>, HTML WG <public-html@w3.org>, www-svg <www-svg@w3.org>
On Thu, 22 Jan 2009, Jonas Sicking wrote: > On Thu, Jan 22, 2009 at 4:45 PM, Ian Hickson <ian@hixie.ch> wrote: > > On Mon, 25 Aug 2008, Doug Schepers wrote: > >> > >> We have an issue with SVG that we think applies to HTML UAs as well, > >> and we'd like to align. > >> > >> When an element (such as a form field) has focus, and is removed from > >> the DOM or hidden with e.g. display:none, what should happen with the > >> focus? > >> > >> * Should the element lose focus? > >> * If it does lose focus, should it throw a blur/focusout event? > >> * If it does lose focus, where should the document focus go? > >> * If it doesn't lose focus, should it still receive e.g. keyboard events > >> when it is in that removed/hidden state? > >> * If the element is replaced in the DOM, should it regain focus? > >> * If the element is unhidden, should it regain focus? > >> * If it does regain/keep focus, should it subsequently begin/keep > >> receiving events? > >> > >> We have a simple test case that seems to indicate that HTML UAs vary > >> on this: > >> http://lists.w3.org/Archives/Public/public-svg-wg/2008JulSep/0171.html http://software.hixie.ch/utilities/js/live-dom-viewer/saved/7 > >> Some seem to lose focus, or partially lose focus (retain focus, but > >> can't receive keyboard events), or lose focus completely. > >> > >> We think that the element should lose focus, through a blur/focusout > >> event, that the focus should go to the document root, and that the > >> element should not regain focus upon becoming available again. > > > > Did the SVG working group come to a conclusion on this issue? > > But I too think it'd be great, if not vital, that HTML and SVG do the > same thing here. I couldn't find the relevant text in SVG 1.2 Tiny. I have made the spec require what is described above as the behavior desired by the SVG working group. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 13 February 2009 01:38:11 UTC