[whatwg] [wf2] autofocus

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