Closed Bug 2095429 Opened 9 days ago Closed 8 days ago

[wpt-sync] Sync PR 65114 - Allow <input> anywhere inside <select> with InputInSelect

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
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}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.