From 65e171111e5e5c8174edb8c911a37e543792c569 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 11 Jul 2024 16:24:45 +0100 Subject: [PATCH] update invokers using command nomenclature & semantics BREAKING CHANGE: This changes the polyfill to update to the latest names: invokeTargetElement->commandForElement invokeAction->command InvokeEvent->CommandEvent InvokeEvent#action->CommandEvent#command This also prevents invokers functioning inside of forms without an explicit `type=button`, additionally preventing form submissions from firing if they have a `command`/`commandfor` attribute present. --- example.html | 45 ++++++------ invoker.d.ts | 10 +-- invoker.js | 195 ++++++++++++++++++++++++++++++++++++++------------- 3 files changed, 176 insertions(+), 74 deletions(-) diff --git a/example.html b/example.html index b174c12..74ab68b 100644 --- a/example.html +++ b/example.html @@ -13,23 +13,25 @@ > -

InvokeTarget & InvokeAction

+

commandfor & command attributes

This is a demonstration page for the github:keithamus/invokers-polyfill. + >, which polyfills the + Invoker Buttons proposal +


Initial Actions

- - -
- + This is a popover

Future Actions -
-
- @@ -83,7 +83,7 @@

Initial Actions


-