-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
- Spec:
- Chrome:
- Firefox:
- WebKit:
Adding invoketarget and invokeaction attributes to <button> and <input type="button"> / <input type="reset"> elements would allow authors to assign behaviour to buttons in a more accessible and declarative way, while reducing bugs and simplifying the amount of JavaScript pages are required to ship for interactivity. Buttons with invoketarget will - when clicked, touched, or enacted via keypress - dispatch an InvokeEvent on the element referenced by invoketarget, with some default behaviours.
🤩
third774, jkpace, johnpgreen, o-t-w and westonruter