Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement <selectedoption> for StylableSelect #45096

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Mar 13, 2024

This patch adds support for the <selectedoption> element to <select>.
The <selectedoption> element replaces its innerHTML with the ancestor
<select>'s selected <option>s innerHTML whenever the selected <option>
changes.

This patch implements it using a SynchronousMutationObserver with an
IsDescendantOf check, which might be slow. I added some comments in the
header with ideas of how to improve the performance.

Bug: 1511354
Change-Id: I38be4657e11dd766cef1fc974e16da173fdf829d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5370555
Reviewed-by: David Baron <[email protected]>
Commit-Queue: Joey Arhar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1280361}

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-5370555 branch 3 times, most recently from 1b88ba1 to e1b5bc2 Compare March 25, 2024 23:15
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-5370555 branch 3 times, most recently from 6d87b25 to eba1277 Compare March 29, 2024 21:10
@chromium-wpt-export-bot chromium-wpt-export-bot marked this pull request as ready for review March 29, 2024 22:12
This patch adds support for the <selectedoption> element to <select>.
The <selectedoption> element replaces its innerHTML with the ancestor
<select>'s selected <option>s innerHTML whenever the selected <option>
changes.

This patch implements it using a SynchronousMutationObserver with an
IsDescendantOf check, which might be slow. I added some comments in the
header with ideas of how to improve the performance.

Bug: 1511354
Change-Id: I38be4657e11dd766cef1fc974e16da173fdf829d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5370555
Reviewed-by: David Baron <[email protected]>
Commit-Queue: Joey Arhar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1280361}
Copy link
Collaborator

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

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 f8ae9c7 into master Mar 29, 2024
20 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-5370555 branch March 29, 2024 22:43
scottaohara added a commit to w3c/aria that referenced this pull request Sep 27, 2024
I recreated the [original PR](w3c/html-aam#566) by @josepharhar

The `<selectedoption>` element is part of the [customizable select feature](whatwg/html#9799) and is being added to HTML [here](whatwg/html#10633).

## Implementation

* WPT tests: web-platform-tests/wpt#45096
* Implementations (link to issue or when done, link to commit):
   * WebKit: TODO
   * Gecko: TODO
   * Blink: https://chromium.googlesource.com/chromium/src/+/18b5eac27b14b409503aa8047cf9358082a0e0df

Co-authored-by: Joey Arhar @josepharhar
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