Skip to content

Commit

Permalink
Add InvokeElement, InvokeEvent, steps for invocation
Browse files Browse the repository at this point in the history
This specifies some of the detail within the Invokers proposal (#9625).

This introduces 2 new IDLs:

- InvokeEvent: A new event that has `action` and `invoker`.
- InvokeElement: A mixin applied to Buttons to add
  `invokeTargetElement`/`invokeAction`

It also adds the `invoketarget` & `invokeaction` attributes which are
reflected to the IDL properties.

It also adds the steps for invocation: button activation checks if the
node has an invokeTarget and dispatches an InvokeEvent if so.

Things NOT covered in this commit that are included in the propoal (#9625):

- Default per element behaviours (invocation action algorithms), this
  will be dealt with in subsequent individual commits.

- `interestaction` and `interesttarget`.
  • Loading branch information
keithamus committed Oct 15, 2023
1 parent 52f546d commit 45e4032
Showing 1 changed file with 247 additions and 1 deletion.
Loading

0 comments on commit 45e4032

Please sign in to comment.