Skip to content

Implement ToggleEvent.source#52589

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-a65bca96fc
May 16, 2025
Merged

Implement ToggleEvent.source#52589
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-a65bca96fc

Conversation

@chromium-wpt-export-bot

Copy link
Copy Markdown
Collaborator

The ToggleEvent's source attribute is set to the element which invoked
the element which the ToggleEvent is being fired on. Source can be set
up as a parameter passed to element.showPopover(), an element with the
popovertarget attribute, or an element with the commandfor attribute.
This patch implements support for every element which the ToggleEvent is
currently fired on, including <details>, <dialog>, and popovers.

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

The ToggleEvent's source attribute is set to the element which invoked
the element which the ToggleEvent is being fired on. Source can be set
up as a parameter passed to element.showPopover(), an element with the
popovertarget attribute, or an element with the commandfor attribute.
This patch implements support for every element which the ToggleEvent is
currently fired on, including <details>, <dialog>, and popovers.

Bug: 4080188
Change-Id: I43f3cfe66cfcf077980180d598cfb4ccea6c171e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6427115
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1461127}
@chromium-wpt-export-bot chromium-wpt-export-bot marked this pull request as ready for review May 16, 2025 03:02

@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 054fc62 into master May 16, 2025
22 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-a65bca96fc branch May 16, 2025 03:54
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.

4 participants