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

Editorial: make implicit autofocus algorithm flag explicit #3498

Closed
annevk opened this issue Feb 22, 2018 · 1 comment
Closed

Editorial: make implicit autofocus algorithm flag explicit #3498

annevk opened this issue Feb 22, 2018 · 1 comment
Labels
clarification Standard could be clearer topic: forms

Comments

@annevk
Copy link
Member

annevk commented Feb 22, 2018

The autofocus attribute algorithm contains this step:

If the user agent has already reached the last step of this list of steps in response to an element being inserted into a Document whose top-level browsing context's active document is the same as target's top-level browsing context's active document, then return.

This is a little magic. It'd be better to give (all) documents a flag (initially unset), set it when you run this algorithm for the top-level browsing context's active document, and also make this algorithm check for it and terminate if it's set. (It doesn't need to be unset.)

Came up in #3488.

(It'd also be good to write some tests since we don't have many autofocus tests at the moment.)

@annevk annevk added clarification Standard could be clearer topic: forms labels Feb 22, 2018
@domenic
Copy link
Member

domenic commented Mar 25, 2020

This was fixed in #4763, yay!

@domenic domenic closed this as completed Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer topic: forms
Development

No branches or pull requests

2 participants