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

dialog, autofocus: Do not enqueue elements with autofocus attribute i… #4918

Merged
merged 2 commits into from
Nov 7, 2019

Conversation

tkent-google
Copy link
Contributor

@tkent-google tkent-google commented Sep 19, 2019

…nside a dialog element

This fixes #4788

(See WHATWG Working Mode: Changes for more details.)


/interactive-elements.html ( diff )

@domenic
Copy link
Member

domenic commented Sep 19, 2019

I know <dialog> is in a bit of a weird space in regards to implementer interest, but would Mozilla or WebKit be able to comment on whether they think this change is reasonable? See also #4788 for background. @annevk @smaug---- @rniwa

@smaug----
Copy link

Feels a bit weird. Why would we add such special case to the platform

@domenic
Copy link
Member

domenic commented Oct 1, 2019

@smaug---- are you aware that dialog and autofocus already have an interaction? See https://html.spec.whatwg.org/multipage/interactive-elements.html#dialog-focusing-steps

@tkent-google
Copy link
Contributor Author

@smaug----
Another option is set autofocus procssed flag to true in dialog focusing steps. What do you think?

@smaug----
Copy link

That sounds nicer approach.

@tkent-google
Copy link
Contributor Author

Updated the PR for the new approach.

@domenic domenic merged commit b48bb22 into whatwg:master Nov 7, 2019
domenic pushed a commit to web-platform-tests/wpt that referenced this pull request Nov 7, 2019
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Nov 29, 2019
…with <dialog>, a=testonly

Automatic update from web-platform-tests
hmtl: Add a test for an autofocus issue with <dialog>

Follows whatwg/html#4918.
--

wpt-commits: 64fff8f90cf94701f7631f84d54f882d846eca3a
wpt-pr: 19151
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Nov 29, 2019
…with <dialog>, a=testonly

Automatic update from web-platform-tests
hmtl: Add a test for an autofocus issue with <dialog>

Follows whatwg/html#4918.
--

wpt-commits: 64fff8f90cf94701f7631f84d54f882d846eca3a
wpt-pr: 19151
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Nov 30, 2019
…with <dialog>, a=testonly

Automatic update from web-platform-tests
hmtl: Add a test for an autofocus issue with <dialog>

Follows whatwg/html#4918.
--

wpt-commits: 64fff8f90cf94701f7631f84d54f882d846eca3a
wpt-pr: 19151

UltraBlame original commit: 77642112f19ce4ce97321b0b67fe4d301cf14ac5
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Nov 30, 2019
…with <dialog>, a=testonly

Automatic update from web-platform-tests
hmtl: Add a test for an autofocus issue with <dialog>

Follows whatwg/html#4918.
--

wpt-commits: 64fff8f90cf94701f7631f84d54f882d846eca3a
wpt-pr: 19151

UltraBlame original commit: 77642112f19ce4ce97321b0b67fe4d301cf14ac5
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Nov 30, 2019
…with <dialog>, a=testonly

Automatic update from web-platform-tests
hmtl: Add a test for an autofocus issue with <dialog>

Follows whatwg/html#4918.
--

wpt-commits: 64fff8f90cf94701f7631f84d54f882d846eca3a
wpt-pr: 19151

UltraBlame original commit: 77642112f19ce4ce97321b0b67fe4d301cf14ac5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Autofocus element in a <dialog> tries to get focus twice
3 participants