From a9eae6a0e00d2bb9221735349beac10af67731d2 Mon Sep 17 00:00:00 2001 From: SilentImp Date: Mon, 9 Dec 2024 16:31:42 +0100 Subject: [PATCH 1/2] Add Invoker Commands API Add into the list of features Invoker Commands. You can find explainer related to this here: - https://open-ui.org/components/invokers.explainer/ And CanIUse links: - https://caniuse.com/mdn-api_commandevent - https://caniuse.com/mdn-api_commandevent_source - https://caniuse.com/mdn-api_commandevent_command - https://caniuse.com/mdn-html_elements_button_command - https://caniuse.com/mdn-html_elements_button_commandfor - https://caniuse.com/mdn-api_htmlbuttonelement_command - https://caniuse.com/mdn-api_htmlbuttonelement_commandforelement --- features/invoker-commands.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 features/invoker-commands.yml diff --git a/features/invoker-commands.yml b/features/invoker-commands.yml new file mode 100644 index 00000000000..94e1db4d0e4 --- /dev/null +++ b/features/invoker-commands.yml @@ -0,0 +1,12 @@ +name: Invoker Commands +description: Adding commandfor and command attributes to elements would allow to assign interactions in a more accessible and declarative way, while reducing bugs and simplifying the amount of JavaScript pages are required to ship for interactivity. +spec: https://open-ui.org/components/invokers.explainer/ +compat_features: + - api.CommandEvent + - api.HTMLElement.command_event + - api.HTMLButtonElement.command + - api.HTMLButtonElement.commandForElement + - html.elements.button.command + - html.elements.button.commandfor + + From 524149eb56943a0311ce01cbd5febb5fbd01db51 Mon Sep 17 00:00:00 2001 From: SilentImp Date: Tue, 10 Dec 2024 18:18:55 +0100 Subject: [PATCH 2/2] Update features/invoker-commands.yml Co-authored-by: James Stuckey Weber --- features/invoker-commands.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/invoker-commands.yml b/features/invoker-commands.yml index 94e1db4d0e4..c18ffcb08c9 100644 --- a/features/invoker-commands.yml +++ b/features/invoker-commands.yml @@ -1,5 +1,5 @@ name: Invoker Commands -description: Adding commandfor and command attributes to elements would allow to assign interactions in a more accessible and declarative way, while reducing bugs and simplifying the amount of JavaScript pages are required to ship for interactivity. +description: The `command` HTML attribute declaratively creates an interaction on a `