This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27833 - Issue: 99% of the time if you want to use auto focus you want it to be the first visible control of [...]
Summary: Issue: 99% of the time if you want to use auto focus you want it to be the fi...
Status: RESOLVED NEEDSINFO
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Needs Impl Interest
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/#the-for...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-14 22:25 UTC by contributor
Modified: 2016-03-24 17:28 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2015-01-14 22:25:07 UTC
Specification: https://html.spec.whatwg.org/multipage/forms.html
Multipage: https://html.spec.whatwg.org/multipage/#the-form-element
Complete: https://html.spec.whatwg.org/#the-form-element
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
Issue: 99% of the time if you want to use auto focus you want it to be the
first visible control of a form.  I'd there like to suggest an autofocus
attribute for the form element whose presence causes the first visible control
to have focus on page load.

Posted from: 212.159.111.66
User agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Comment 1 Ian 'Hixie' Hickson 2015-01-15 20:11:11 UTC
How would it work? Just keep monitoring the DOM until a form control is added, then focus it? That sounds expensive.

Are any UAs interested in implementing this?
Comment 2 Anne 2016-03-24 17:28:37 UTC
Closing due to lack of follow up.