[wpt-sync] Sync PR 63154 - Test that an input's value resets after a text to file to text type change
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63154 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63154
Details from upstream follow.
object-ions <moshikoatia@gmail.com> wrote:
Test that an input's value resets after a text to file to text type change
Closes #2611.
Adds a testharness.js test for steps 2 and 3 of the input type change algorithm. After the type goes from text to file and back to text:
- the value is the
valuecontent attribute, or the empty string if there isn't one- the dirty value flag is false, so a later
setAttribute("value", ...)shows through
type-change-state.htmlalready covers text to file, but it never changes the type away from file, so the round trip wasn't tested.Passes in Chromium 153. Per the issue thread, Safari still fails the original case.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=99324
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 165 tests and 16 subtests
Status Summary
Firefox
OK : 1[GitHub] 126[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 3[GitHub] 11[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 1973[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1999[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 2000[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 26
Chrome
OK : 1
PASS: 3
Safari
OK : 1
FAIL: 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/semantics/forms/the-input-element/type-change-to-same-type.html [wpt.fyi]:
PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview] - /html/semantics/forms/the-input-element/image-click-form-data.html [wpt.fyi]:
SKIP - /html/semantics/forms/the-input-element/click-user-gesture.html [wpt.fyi]
- input[type=date] click() consumes user activation:
FAIL - input[type=datetime-local] click() consumes user activation:
FAIL - input[type=month] click() consumes user activation:
FAIL - input[type=time] click() consumes user activation:
FAIL - input[type=week] click() consumes user activation:
FAIL
- input[type=date] click() consumes user activation:
- /html/semantics/forms/the-input-element/color.window.html [wpt.fyi]
- Display P3 colors can be out-of-bounds:
FAIL
- Display P3 colors can be out-of-bounds:
- /html/semantics/forms/the-input-element/date-readonly-keyboard.html [wpt.fyi]
- Readonly date input should not change value via keyboard interaction:
FAIL
- Readonly date input should not change value via keyboard interaction:
- /html/semantics/forms/the-input-element/datetime-local-trailing-zeros.html [wpt.fyi]
- Verifies that trailing zeros in the milliseconds portion of the date strings are removed.:
FAIL
- Verifies that trailing zeros in the milliseconds portion of the date strings are removed.:
- /html/semantics/forms/the-input-element/email-value-idn.html [wpt.fyi]
- IDN domain in parser-created email value attribute is converted to ASCII:
FAIL - IDN domain in dynamically-set email value attribute is converted to ASCII:
FAIL - IDN domains in multiple email value attribute are converted to ASCII:
FAIL - IDN domain is converted when type changes to email:
FAIL
- IDN domain in parser-created email value attribute is converted to ASCII:
- /html/semantics/forms/the-input-element/image-width-height.html [wpt.fyi]
- width and height attribute value "+10" when not rendered:
FAIL - width and height attribute value "50%" when not rendered:
FAIL - width and height attribute value "1.9" when not rendered:
FAIL - width and height attribute value "0.5" when not rendered:
FAIL - width and height attribute value "-0" when not rendered:
FAIL - width and height attribute value "-0.5" when not rendered:
FAIL
- width and height attribute value "+10" when not rendered:
- /html/semantics/forms/the-input-element/input-type-checkbox-switch.tentative.window.html [wpt.fyi]
- switch IDL attribute, setter:
FAIL - switch IDL attribute, getter:
FAIL - Cloning a switch control:
FAIL
- switch IDL attribute, setter:
- /html/semantics/forms/the-input-element/number-invalid-scientific-key-events.html [wpt.fyi]
- Reject multiple signs after 'e' (-):
FAIL - Reject multiple signs after 'e' (+):
FAIL - Leading '+' with existing 'e':
FAIL
- Reject multiple signs after 'e' (-):
- /html/semantics/forms/the-input-element/range-restore-oninput-onchange-event.https.html [wpt.fyi]
- Verifies that form restoration does not fire input or change events for <input type=range>.:
FAIL - Verifies that form restoration does not fire input or change events for <input type=text>.:
FAIL
- Verifies that form restoration does not fire input or change events for <input type=range>.:
Tests Disabled in Gecko Infrastructure
- /html/semantics/forms/the-input-element/type-change-to-same-type.html [wpt.fyi]:
PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview] - /html/semantics/forms/the-input-element/image-click-form-data.html [wpt.fyi]:
SKIP
Description
•