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

Need algorithm for how focus events are fired #195

Open
garykac opened this issue Apr 9, 2018 · 2 comments
Open

Need algorithm for how focus events are fired #195

garykac opened this issue Apr 9, 2018 · 2 comments

Comments

@garykac
Copy link
Member

garykac commented Apr 9, 2018

We need a algorithmic description of how focus events are fired.

blur, focus, focusin, focusout

It should also cover: DOMFocusIn and DOMFocusOut

Starting point:

<User shifts focus>
1	focusin	Sent before first target element receives focus
2	focus	Sent after first target element receives focus
3	DOMFocusIn	(If supported)
<User shifts focus>
4	focusout	Sent before first target element loses focus
5	focusin	Sent before second target element receives focus
6	blur	Sent after first target element loses focus
7	DOMFocusOut	(If supported)
8	focus	Sent after second target element receives focus
9	DOMFocusIn	(If supported)
@garykac
Copy link
Member Author

garykac commented Apr 9, 2018

@domenic
Copy link

domenic commented Apr 10, 2018

Likely this would replace either part or all of https://html.spec.whatwg.org/#focus-update-steps. Unsure on the exact best division of labor/specs, but happy to help figure it out.

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

No branches or pull requests

2 participants