Closed Bug 1857887 Opened 8 months ago Closed 7 months ago

Add `invoketarget` & `invokeaction` attributes

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: mozilla, Assigned: mozilla)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

No description provided.

This adds support for the experimental invoketarget and invokeaction
attributes, as specified in the open-ui "Invokers" explainer.

(https://open-ui.org/components/invokers.explainer/)

The invoketarget attribute maps to the IDL invokeTargetElement,
similar to popoverTargetElement, and the invokeaction is a freeform
string.

The Button behaviour checks for invokeTargetElement in its activation
behaviour, and dispatches an InvokeEvent if there is one.

This also adds some basic scaffolding for handleInvokeInternal which
will allow elements to provide their own invocation action algorithms.

Assignee: nobody → keithamus
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Blocks: 1856430
Summary: Add `invketarget` & `invokeaction` attributes → Add `invoketarget` & `invokeaction` attributes
Pushed by mozilla@keithcirkel.co.uk:
https://hg.mozilla.org/integration/autoland/rev/9305bb731ce8
Add invoketarget & invoketarget action attributes r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/43023 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: