Skip to content

Commit f4daeac

Browse files
ddbeckSilentImpjamesnwcaptainbrosset
authored
Add invoker-commands feature (#2714)
Explainer: https://open-ui.org/components/invokers.explainer/ Co-authored-by: SilentImp <[email protected]> Co-authored-by: James Stuckey Weber <[email protected]> Co-authored-by: Patrick Brosset <[email protected]>
1 parent 47ac516 commit f4daeac

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

features/invoker-commands.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Invoker commands
2+
description: The `command` and `commandfor` attributes for the `<button>` HTML element dispatch an action to an element when the button is invoked (by click or keystroke), as a declarative alternative to `addEventListener()` calls or `onclick` attribute handlers.
3+
spec: https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-command
4+
compat_features:
5+
- api.CommandEvent
6+
- api.CommandEvent.CommandEvent
7+
- api.CommandEvent.command
8+
- api.CommandEvent.source
9+
- api.HTMLElement.command_event
10+
- api.HTMLButtonElement.command
11+
- api.HTMLButtonElement.commandForElement
12+
- html.elements.button.command
13+
- html.elements.button.commandfor

features/invoker-commands.yml.dist

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Generated from: invoker-commands.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support: {}
7+
compat_features:
8+
- api.CommandEvent
9+
- api.CommandEvent.CommandEvent
10+
- api.CommandEvent.command
11+
- api.CommandEvent.source
12+
- api.HTMLButtonElement.command
13+
- api.HTMLButtonElement.commandForElement
14+
- api.HTMLElement.command_event
15+
- html.elements.button.command
16+
- html.elements.button.commandfor

0 commit comments

Comments
 (0)