*Contact emails*
[email protected]

*Explainer*
*No information provided*

*Specification*
https://github.com/whatwg/html/pull/13243

*Summary*
The HTML parser currently has a behavior where parsing an input tag will
close any open ancestor select tag, preventing input elements from being
used inside select elements. This is blocking us from working on the
filterable select feature, which needs support for nesting input elements
inside select. Some sites have accidentally relied on this parser behavior,
so I have done outreach to migrate sites by adding the missing select end
tag, which is a very simple fix. Existing usage can be seen in these two
use counters:
https://chromestatus.com/metrics/feature/timeline/popularity/5546
https://chromestatus.com/metrics/feature/timeline/popularity/5547

*Blink component*
Blink>HTML>Parser
<https://issues.chromium.org/issues?q=customfield1222907:%22Blink%3EHTML%3EParser%22>

*Web Feature ID*
Missing feature

*Motivation*
After spending a fair amount of time considering alternatives like using an
attribute on the select element or making the input and select elements be
siblings, we decided that it would still be best to change the parser and
allow nesting input in select.

*Initial public proposal*
*No information provided*

*TAG review*
No TAG review. This is a small change being worked on in WHATWG and is not
a new feature.

*TAG review status*
Not applicable

*Goals for experimentation*
None

*Risks*


*Interoperability and Compatibility*
Interop risk is low, the other browsers are supportive of following through
with the parser changes after we demonstrate that it can be shipped.

*Gecko*: Positive (
https://github.com/whatwg/html/issues/12050#issuecomment-6948503807)

*WebKit*: No signal

*Web developers*: No signals

*Other signals*:

*Ergonomics*
This change will be used in tandem with filterable select when that ships.
This change will not affect performance.

*Activation*
Developers don't need to be made aware of this change unless their site
depends on the current parser behavior. I have already done outreach to the
affected sites.

*Security*
In the long term this should reduce the risk of mXSS. In the short term
there could be issues if browsers and servers disagree on which tags are
allowed inside select elements. This should be the same situation as the
prior select parser change I already shipped.

*WebView application risks*

Does this intent deprecate or change behavior of existing APIs, such that
it has potentially high risk for Android WebView-based applications?
This does not have a particularly high risk for android webview.


*Debuggability*
I added console messages for when an input is parsed inside a select
element to let sites know that they are missing a select end tag. After
shipping this change, I will leave a modified console message in this case
for a while before shipping filterable select so that it will still be easy
for affected sites to find where they are missing a select end tag.

*Will this feature be supported on all six Blink platforms (Windows, Mac,
Linux, ChromeOS, Android, and Android WebView)?*
Yes

*Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>?*
Yes
https://wpt.fyi/results/html/semantics/forms/the-select-element/customizable-select/select-input-parsing.tentative.html

*Flag name on about://flags*
*No information provided*

*Finch feature name*
InputInSelect

*Rollout plan*
Will ship enabled for all users

*Requires code in //chrome?*
False

*Tracking bug*
https://issues.chromium.org/issues/396300371

*Estimated milestones*

No milestones specified


*Anticipated spec changes*

Open questions about a feature may be a source of future web compat or
interop issues. Please list open issues (e.g. links to known github issues
in the project for the feature specification) whose resolution may
introduce web compat/interop risk (e.g., changing to naming or structure of
the API in a non-backward-compatible way).
*No information provided*

*Link to entry on the Chrome Platform Status*
https://chromestatus.com/feature/4828291285516288?gate=4692373253783552

This intent message was generated by Chrome Platform Status
<https://chromestatus.com/>.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK6btw%2BXN%2Bkut82th3Jz%3D8YqXaV6Pii%3Dz%2B9%2BOOs7wZX9J0Ls3g%40mail.gmail.com.

Reply via email to