W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2005

[whatwg] [wf2] autofocus

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 25 Nov 2005 19:14:10 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0511251913220.9929@dhalsim.dreamhost.com>
On Fri, 25 Nov 2005, Anne van Kesteren wrote:
>
> Regarding 
> <http://whatwg.org/specs/web-forms/current-work/#the-autofocus>.
> 
> What happens when a form control is already there but its autofocus DOM 
> attribute is set to "true"? Same as calling the .focus() method on the 
> form control or same as "nothing happens"?

The spec lists all the requirements for autofocus="" handling, and none of 
them imply anything should happen when the attribute is dynamically 
changed, therefore nothing happens.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 25 November 2005 11:14:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:43 UTC