[wpt-sync] Sync PR 65114 - Allow <input> anywhere inside <select> with InputInSelect
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65114 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65114
Details from upstream follow.
Joey Arhar <jarhar@chromium.org> wrote:
Allow <input> anywhere inside <select> with InputInSelect
Previously, this flag was created and tweaked to only allow \<input>
nested in \<select> when there was another tag in between the select and
the input, and/or when there were no option elements parsed yet when the
input was seen.Based on WHATWG feedback, this approach as well as branching the parser
on an attribute on the select element is not good enough because it can
introduce mxss.This patch makes the InputInSelect flag simply remove all logic that
makes the input tag close a select tag, which hopefully we can ship with
outreach to affected sites.Bug: 396300371
Change-Id: I0f416100940cb1d4f706479e9d4a2a75ad44d703
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8719948
Reviewed-by: Mason Freed \<masonf@chromium.org>
Reviewed-by: Joey Arhar \<jarhar@chromium.org>
Commit-Queue: Joey Arhar \<jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1743162}
| Assignee | ||
Updated•9 days ago
|
| Assignee | ||
Comment 1•9 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=123193
| Assignee | ||
Comment 2•9 days ago
|
||
CI Results
Ran 0 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: 2
FAIL: 2
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-select-element/customizable-select/select-input-parsing.tentative.html [wpt.fyi]
- Input tags should parse inside select before any options.:
FAIL(Chrome:PASS, Safari:FAIL) - Input tags should parse inside select if nested in another tag:
FAIL(Chrome:PASS, Safari:FAIL) - Input tags should parse inside select when directly inside an <option>:
FAIL(Chrome:FAIL, Safari:FAIL) - Input tags should parse inside select when placed after an <option>:
FAIL(Chrome:FAIL, Safari:FAIL)
- Input tags should parse inside select before any options.:
Comment 4•8 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7f3ee8a73fc0
https://hg.mozilla.org/mozilla-central/rev/48a0e68a0cc4
Description
•