Repository navigation
Define customizable <select> - #10548
Merged
Merged
Conversation
josepharhar
force-pushed
the
selectcomplete
branch
from
August 5, 2024 14:38
8be5f47 to
0bee650
Compare
josepharhar
force-pushed
the
selectcomplete
branch
2 times, most recently
from
August 7, 2024 22:31
4691e13 to
bef9083
Compare
scottaohara
reviewed
Aug 8, 2024
josepharhar
force-pushed
the
selectcomplete
branch
from
August 13, 2024 17:33
34be830 to
fed19dc
Compare
scottaohara
reviewed
Aug 14, 2024
Contributor
Author
|
FYI: I am likely going to remove the author-provided datalist and fallback UA button in this PR soon based on recent discussions, which will likely reduce the number of changes and complexity. |
This was referenced Aug 20, 2024
josepharhar
force-pushed
the
selectcomplete
branch
3 times, most recently
from
August 28, 2024 20:03
6dab95d to
57e00bf
Compare
mtrootyy
reviewed
Aug 30, 2024
mtrootyy
reviewed
Aug 30, 2024
mtrootyy
reviewed
Aug 31, 2024
mtrootyy
reviewed
Aug 31, 2024
mtrootyy
reviewed
Aug 31, 2024
josepharhar
force-pushed
the
selectcomplete
branch
5 times, most recently
from
September 12, 2024 22:06
50bf192 to
12edc88
Compare
Contributor
|
Should this PR be closed, to avoid confusion? I believe it's been completely superseded by the list at the top of #9799, right? |
Contributor
Author
|
Yes I'm not keeping this up to date anymore since I decided to split out the PRs and have slight redundancies |
Member
|
@dmsnell can you please file a new issue on that? |
lexborisov
added a commit
to lexbor/lexbor
that referenced
this pull request
Sep 26, 2025
Synchronization with specifications: whatwg/html#10548 html5lib-tests updated. Unfortunately, we had to add the <search> tag in this patch, rather than in a separate one. Also in this patch, foreign content parsing has been changed. Brought into line with the specification. This related #256 issue on GitHub.
webkit-commit-queue
pushed a commit
to annevk/WebKit
that referenced
this pull request
Oct 4, 2025
https://bugs.webkit.org/show_bug.cgi?id=299959 rdar://140875257 Reviewed by Ryosuke Niwa. This implements the parser aspects of whatwg/html#10548 behind a flag. The old code path continues to be tested through our legacy HTML parser test suite. This does not yet implement new logic for the <select>, <optgroup>, <option>, and <hr> classes to account for the fact that <optgroup>, <option>, and <hr> can now appear as descendants and as such this is only useful for testing. Remove fast/parser/input-textarea-inside-select-element.html test as it was duplicative of both the legacy HTML parser test suite and WPT coverage. (Until these recent <select> changes were made the legacy HTML parser test suite was synchronized with the WPT test suite. We'll remove it once it's easier to add HTML parser tests on the WPT side.) Canonical link: https://commits.webkit.org/300998@main
F3n67u
added a commit
to F3n67u/ladybird
that referenced
this pull request
Nov 21, 2025
This implements parsing part of customizable <select> spec update. See whatwg/html#10548.
F3n67u
added a commit
to F3n67u/ladybird
that referenced
this pull request
Nov 21, 2025
This implements parsing part of customizable <select> spec update. See whatwg/html#10548.
F3n67u
added a commit
to F3n67u/ladybird
that referenced
this pull request
Nov 21, 2025
This implements parsing part of customizable <select> spec update. See whatwg/html#10548.
F3n67u
added a commit
to F3n67u/ladybird
that referenced
this pull request
Nov 21, 2025
This implements parsing part of customizable <select> spec update. See whatwg/html#10548.
F3n67u
added a commit
to F3n67u/ladybird
that referenced
this pull request
Nov 21, 2025
This implements parsing part of customizable <select> spec update. See whatwg/html#10548.
F3n67u
added a commit
to F3n67u/ladybird
that referenced
this pull request
Dec 8, 2025
Introduce the HTMLSelectedContentElement and integrate it into <select>, <option> and HTMLParser. See whatwg/html#10548. There are two bugs with WPT tests which causes the third subtest in selectedcontent.html and selectedcontent-mutations.html fail. See whatwg/html#11882, whatwg/html#55849.
F3n67u
added a commit
to F3n67u/ladybird
that referenced
this pull request
Dec 11, 2025
- Rename HTMLOptionElement's `owner_select_element()` to `nearest_select_element()` to better match spec terminology. - Update HTMLSelectElement's option list related algorithms. This change is part of the customizable <select> spec work. See whatwg/html#10548.
F3n67u
added a commit
to F3n67u/ladybird
that referenced
this pull request
Dec 11, 2025
Introduce the HTMLSelectedContentElement and integrate it into <select>, <option> and HTMLParser. See whatwg/html#10548. There are two bugs with WPT tests which causes the third subtest in selectedcontent.html and selectedcontent-mutations.html fail. See whatwg/html#11882, web-platform-tests/wpt#55849.
AtkinsSJ
pushed a commit
to LadybirdBrowser/ladybird
that referenced
this pull request
Dec 12, 2025
- Rename HTMLOptionElement's `owner_select_element()` to `nearest_select_element()` to better match spec terminology. - Update HTMLSelectElement's option list related algorithms. This change is part of the customizable <select> spec work. See whatwg/html#10548.
AtkinsSJ
pushed a commit
to LadybirdBrowser/ladybird
that referenced
this pull request
Dec 12, 2025
Introduce the HTMLSelectedContentElement and integrate it into <select>, <option> and HTMLParser. See whatwg/html#10548. There are two bugs with WPT tests which causes the third subtest in selectedcontent.html and selectedcontent-mutations.html fail. See whatwg/html#11882, web-platform-tests/wpt#55849.
2 of 4 tasks
ephoton0210
added a commit
to ephoton0210/blueice
that referenced
this pull request
Sep 9, 2026
… "in select" The 8 remaining corpus cases (tests1.dat#29/#99, webkit02.dat#35/#38/ #40/#41/#42) were previously classified as confirmed-stale test expectations, on the basis of html5lib's Python InSelectPhase dispatch table matching BlueIce's own ignore-outright behavior. That classification was itself wrong: html5lib is stale relative to the current WHATWG living standard, not the other way around. The "Customizable Select" feature (whatwg/html#10548, merged mid-2025, already shipped in Chromium and Gecko) removed the dedicated "in select"/"in select in table" insertion modes entirely, folding <select>'s content model into ordinary "in body" processing -- confirmed against the spec's current source and its own merged test-suite update (html5lib/html5lib-tests#178). Reimplement step_in_body's "select"/"option"/"optgroup"/"hr"/"input" arms per the current algorithm (each checking "has a select element in scope" directly, no dedicated mode), removing step_in_select/step_in_select_in_table and the Mode::InSelect/ Mode::InSelectInTable states. Also fixes a latent, independent bug this surfaced: is_special approximated the "special" element category as "not a formatting element" instead of the real enumerated list, wrongly treating <option> as special and blocking </optgroup>'s generic-end-tag scan from reaching the <optgroup> below an open <option> -- replaced with an explicit SPECIAL_ELEMENTS list. Corpus pass rate: 57.3% -> 58.3% (1022/1753), unclassified failures: 0. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VzUcwXuvot5qUrqWyi26hd
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This defines several concepts related to customizable
<select>:<select><select>and related elements.<select><selectedcontent>HTML element<select>with base appearanceCloses #9799
Closes #10557
Closes #10310
Closes #10586
Closes #10317
Closes #10629
Closes #10633
Closes #10520
Closes #10670
Closes #10520
Closes #10762
<select>parser WebKit/standards-positions#414<select>parser mozilla/standards-positions#1086/dom.html ( diff )
/form-control-infrastructure.html ( diff )
/form-elements.html ( diff )
/grouping-content.html ( diff )
/index.html ( diff )
/indices.html ( diff )
/infrastructure.html ( diff )
/interactive-elements.html ( diff )
/parsing.html ( diff )
/references.html ( diff )
/rendering.html ( diff )
/scripting.html ( diff )
/text-level-semantics.html ( diff )