Skip to content

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

Merged
domenic merged 2 commits intowhatwg:masterfrom
tkent-google:tkent-dialog-focus-twice
Nov 7, 2019
Merged

dialog, autofocus: Do not enqueue elements with autofocus attribute i…#4918
domenic merged 2 commits intowhatwg:masterfrom
tkent-google:tkent-dialog-focus-twice

Conversation

@tkent-google
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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

@domenic
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@smaug----
Copy link
Copy Markdown

That sounds nicer approach.

@tkent-google
Copy link
Copy Markdown
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
bhearsum pushed a commit to mozilla-releng/staging-firefox that referenced this pull request May 1, 2025
…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
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