The source attribute of ToggleEvents contains the element which triggered the ToggleEvent to be fired, if applicable. For example, if a button element with the popovertarget or commandfor attribute set up to open a popover is clicked by the user, then the ToggleEvent fired on the popover will have its source attribute set to the invoking button.
I believe that the interop and compat risk is low because the spec is merged, we have positive standards positions, and everything is tested in WPT.
This will frequently be used in tandem with popovers and command invokers. The default usage of this API will not make it hard for chrome to maintain good performance.
This feature will not be hard for developers to use immediately as-is. There is an open MDN issue to add documentation for this: https://github.com/mdn/content/issues/39723
I don't think there are any security risks for this feature.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
There is no special DevTools support that is needed for this feature.
https://wpt.fyi/results/html/semantics/popovers/popover-toggle-source.html https://wpt.fyi/results/html/semantics/interactive-elements/the-dialog-element/dialog-toggle-source.html https://wpt.fyi/results/html/semantics/interactive-elements/the-details-element/details-toggle-source.html
Shipping on desktop | 140 |
Shipping on Android | 140 |
Shipping on WebView | 140 |
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).
The retargeting behavior of this attribute when and invoker is in a shadow root is under discussion, but I strongly believe that this is an edge case which we can modify the behavior of after shipping: https://github.com/whatwg/html/pull/11345--
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 blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/029c3ed2-bcb3-4c7c-b2f6-6089a121d7d5n%40chromium.org.