Hacker News new | ask | show | jobs
by christophilus 4 hours ago
Buttons already have actions and methods and many other useful things: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...

I don’t see how this proposal is any different than what already exists.

2 comments

You 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.
TIL, thank you