Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Autofocus should not surprise the user #105

Closed
chaals opened this issue Feb 26, 2016 · 2 comments
Closed

Autofocus should not surprise the user #105

chaals opened this issue Feb 26, 2016 · 2 comments

Comments

@chaals
Copy link
Collaborator

chaals commented Feb 26, 2016

In Autofocusing a form control: the autofocus attribute, inserting a control with autofocus has the step

If the user has indicated (for example, by starting to type in a form control) that he does not wish focus to be changed, then optionally abort these steps.

There needs to be a better explanation of when autofocus shouldn't change the focus. In particular, dragging around user focus can be malicious, and is anti-user behaviour.

So when a user has set a browser preference, or where the user has manually focused a form control, the steps should always be aborted.

This is https://www.w3.org/Bugs/Public/show_bug.cgi?id=13572
@cyns

@chaals chaals added the bug label Apr 9, 2016
@chaals chaals self-assigned this May 10, 2016
@travisleithead travisleithead added this to the HTML 5.2 WD 4 milestone Oct 24, 2016
@LJWatson LJWatson assigned stevefaulkner and unassigned chaals Jan 10, 2017
@LJWatson
Copy link
Collaborator

Ping @stevefaulkner because this seems to be addressed in your recent autofocus warning commit?

@LJWatson LJWatson modified the milestones: HTML 5.2 WD 4, HTML 5.2 WD 5 Jan 17, 2017
@stevefaulkner
Copy link
Contributor

@LJWatson I think the warning and associated UA requirement covers this, so closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants