Skip to content

Improve selectedcontent parsing update for select multiple#60193

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7856275
May 27, 2026
Merged

Improve selectedcontent parsing update for select multiple#60193
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7856275

Conversation

@chromium-wpt-export-bot

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 27, 2026

Copy link
Copy Markdown
Collaborator

When a selected option element is done parsing, it triggers an update to
the selectedcontent element of the associated select element. In the
case of a select element with the multiple attribute, this could result
in many clones if multiple options have the selected attribute.

This change improves this by moving the selectedcontent update for
select elements with the multiple attribute from option end tag parsing
to select end tag parsing.

Context: whatwg/html#12430 (comment)

Bug: 483769482
Change-Id: I9ee8a2afe66884da26cbf814b80af7bf430414a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7856275
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1636613}

When a selected option element is done parsing, it triggers an update to
the selectedcontent element of the associated select element. In the
case of a select element with the multiple attribute, this could result
in many clones if multiple options have the selected attribute.

This change improves this by moving the selectedcontent update for
select elements with the multiple attribute from option end tag parsing
to select end tag parsing.

Context: whatwg/html#12430 (comment)

Bug: 483769482
Change-Id: I9ee8a2afe66884da26cbf814b80af7bf430414a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7856275
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1636613}

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 229f4c8 into master May 27, 2026
27 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7856275 branch May 27, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants