[wpt-sync] Sync PR 32099 - [SelectMenu] Add support for reset.
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox97 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 32099 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/32099
Details from upstream follow.
Ionel Popescu <iopopesc@microsoft.com> wrote:
[SelectMenu] Add support for reset.
The reset algorithm for selectmenu elements is to go through all the
option elements in the element's list of options, set their selectedness
to true if the option element has a selected attribute, and false
otherwise, set their dirtiness to false, and run the steps to reset
the selected option for the selectmenu.To reset the default selected option:
- if no option is selected, set the selection to the first non-disabled
option if it exists, or null otherwise- if two or more options are selected, set the selection to the last
selected optionBug: 1121840
Change-Id: I5fa981c869a75cd933e60d0f0dbc5999ff3223c5
Reviewed-on: https://chromium-review.googlesource.com/3343646
WPT-Export-Revision: be076be550cbd88ac13684c36bf2e4f22e185d3b
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=7257e4ccb66e428e2cc9e9436078bbee269dbfcf
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 4 subtests
Status Summary
Firefox
OK : 1
FAIL: 4
Chrome
OK : 1
PASS: 3
FAIL: 1
Safari
OK : 1
FAIL: 4
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
/html/semantics/forms/the-selectmenu-element/selectmenu-ask-for-reset.html
ask-for-reset when removing option: FAIL (Chrome: PASS, Safari: FAIL)
ask-for-reset when inserting option: FAIL (Chrome: PASS, Safari: FAIL)
ask-for-reset when changing selectedness of option: FAIL (Chrome: FAIL, Safari: FAIL)
ask-for-reset for form: FAIL (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b318bb731fe9 [wpt PR 32099] - [SelectMenu] Add support for reset., a=testonly https://hg.mozilla.org/integration/autoland/rev/044f4b6dae54 [wpt PR 32099] - Update wpt metadata, a=testonly
Comment 4•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b318bb731fe9
https://hg.mozilla.org/mozilla-central/rev/044f4b6dae54
Description
•