[whatwg] comment on autofocus attribute from Web Forms 2.0 spec

Adele Peterson adele at apple.com
Mon Jun 16 12:17:18 PDT 2008


In HTML5, focus() and blur() are now defined on HTMLElement instead of  
being restricted to specific form elements.

In Web Forms 2.0, the autofocus attribute is defined for "any form  
control (except hidden and output controls)".  It seems like it would  
make more sense to allow autofocus to be on any HTMLElement, and have  
it follow the same focusable rules that focus() follows.

Thanks,
	Adele



More information about the whatwg mailing list