4 ms·
> The proposal itself is very straightforward: we want to add the action and method attributes to the button. Hell yea! Inching our way towards native HTMX.
by wxw 2mo ago
> The proposal itself is very straightforward: we want to add the action and method attributes to the button.
Hell yea! Inching our way towards native HTMX.
- christophilus 2mo agoButtons already have actions and methods and many other useful things: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#formaction https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/... I don’t see how this proposal is any different than what already exists.
- Kuyawa 2mo agoTIL, thank you
- alexpetros 2mo agoYou linked to `formaction`, which allows buttons to control the action of their nested form. This proposal allows buttons to make actions independent of forms, and the blog has an example of how independent button actions compose nicely with the existing `formaction` and `formmethod` controls.