Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning of usability and accessibility should be added to section of autofocus attribute #4575

Open
mtrootyy opened this issue Apr 27, 2019 · 1 comment
Labels
accessibility Affects accessibility topic: forms

Comments

@mtrootyy
Copy link

section of autofocus attribute in W3C HTML5.3
http://w3c.github.io/html/sec-forms.html#autofocusing-a-form-control-the-autofocus-attribute

Warning!
Use of the autofocus attribute can reduce usability and accessibility for users. Users of assistive technology can be adversively affected, because its use overrides the default behaviour of assistive technology to display content at the top of a document in the viewport, or announce content from the start of the document. Users with cognitive disabilities can also be disorientated by unexpected focus movement upon page load.
User agents should provide a method for users to disable the autofocus attribute behaviour.

The above should be added to section of autofocus attribute in HTML Living Standard too.
Because the above is important usability and accessibility issues.

@annevk
Copy link
Member

annevk commented Apr 30, 2019

At a high level it makes sense as overall advice around focus, perhaps with individual API endpoints such as autofocus and focus() pointing to that advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Affects accessibility topic: forms
Development

No branches or pull requests

2 participants