Skip to content

Commit

Permalink
Add commandfor & command attributes to HTMLButtonElement
Browse files Browse the repository at this point in the history
This adds the commandfor & command attributes and a "command" event using the CommandEvent interface.

Button activation checks if the button has a "commandfor" target and if so performs invoker command
behaviour depending on command and the target element.

This introduces 1 new IDLs:

- CommandEvent: A new event that has `action` and `source`.

And extends the HTMLButtonElement IDL to introduce `command` and
`commandfor`

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

- Default per element behaviours for anything beyond popover & dialog,
  this will be dealt with in subsequent individual commits.

- `interestaction` and `interesttarget`.
  • Loading branch information
keithamus committed Nov 8, 2024
1 parent 0511ae0 commit d2009c2
Showing 1 changed file with 419 additions and 31 deletions.
Loading

0 comments on commit d2009c2

Please sign in to comment.