Repository navigation
Skip parts of form submission when the method is dialog - #8943
Merged
Merged
Conversation
Also refactor "submit dialog", "close the dialog", and their callers. Note that removing the open attribute check is safe as "close the dialog" also handles that. Tests: ... Fixes #8499.
domenic
approved these changes
Feb 27, 2023
| data-x="dom-dialog-close">close(<var>returnValue</var>)</code></dfn> method steps are: | ||
|
|
||
| <ol> | ||
| <li><p>If <var>returnValue</var> is not given, then set it to null.</p></li> |
Member
There was a problem hiding this comment.
Not sure if we do "set it to" or "let it be" in these sorts of situations... Or sidestep the question altogether by declaring a second variable.
Member
Author
There was a problem hiding this comment.
I've seen both I think. I guess the idea is that if it's not given it hasn't been initialized yet and is not initialized to undefined? I would be okay with documenting "set it to" in Infra. I personally like that better.
annevk
added a commit
to web-platform-tests/wpt
that referenced
this pull request
Mar 5, 2023
Member
Author
|
I wrote tests and updated OP. |
annevk
added a commit
to web-platform-tests/wpt
that referenced
this pull request
Mar 6, 2023
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this pull request
Mar 7, 2023
Automatic update from web-platform-tests HTML: dialog form submission For whatwg/html#8943. -- wpt-commits: bcaa9ec9eddd784b4cc90eb7ecb5c68dfd56a085 wpt-pr: 38819
marcoscaceres
pushed a commit
to web-platform-tests/wpt
that referenced
this pull request
Mar 28, 2023
aosmond
pushed a commit
to aosmond/gecko
that referenced
this pull request
May 18, 2023
Automatic update from web-platform-tests HTML: dialog form submission For whatwg/html#8943. -- wpt-commits: bcaa9ec9eddd784b4cc90eb7ecb5c68dfd56a085 wpt-pr: 38819
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this pull request
Jul 18, 2023
…. r=dom-core,sefeng whatwg/html#8943 moved dialog submission in the form submission algorithm from step 24 to step 11. Differential Revision: https://phabricator.services.mozilla.com/D183168
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified
that referenced
this pull request
Jul 21, 2023
…. r=dom-core,sefeng whatwg/html#8943 moved dialog submission in the form submission algorithm from step 24 to step 11. Differential Revision: https://phabricator.services.mozilla.com/D183168 UltraBlame original commit: bcffaa369c722f4ebfa7cb8af6a3fc605e2efa10
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-comments-removed
that referenced
this pull request
Jul 21, 2023
…. r=dom-core,sefeng whatwg/html#8943 moved dialog submission in the form submission algorithm from step 24 to step 11. Differential Revision: https://phabricator.services.mozilla.com/D183168 UltraBlame original commit: bcffaa369c722f4ebfa7cb8af6a3fc605e2efa10
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified-and-comments-removed
that referenced
this pull request
Jul 21, 2023
…. r=dom-core,sefeng whatwg/html#8943 moved dialog submission in the form submission algorithm from step 24 to step 11. Differential Revision: https://phabricator.services.mozilla.com/D183168 UltraBlame original commit: bcffaa369c722f4ebfa7cb8af6a3fc605e2efa10
jwidar
pushed a commit
to jwidar/LatencyZeroGithub
that referenced
this pull request
Sep 16, 2025
…. r=dom-core,sefeng whatwg/html#8943 moved dialog submission in the form submission algorithm from step 24 to step 11. Differential Revision: https://phabricator.services.mozilla.com/D183168
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also refactor "submit dialog", "close the dialog", and their callers.
Note that removing the open attribute check is safe as "close the dialog" also handles that.
Tests: web-platform-tests/wpt#38819
Fixes #8499.
(See WHATWG Working Mode: Changes for more details.)
/form-control-infrastructure.html ( diff )
/interactive-elements.html ( diff )