Add the "action" and "method" attributes to <button>
### What is the issue with the HTML Standard? ## Description Currently, the `<button>` element supports the `formaction` and `formmethod` attributes, which let it change the `action` and `method`, respectively, of its parent `<form>`. Buttons should also support the `action` and `method` attributes, which would allow the button to make HTTP requests without being wrapped in a form. This is the second of the [Triptych Proposals](https://triptychproject.org/), three (relatively) modest additions to HTML that would make it much more expressive. The first of these three is [PUT, PATCH, and DELETE support](https://github.com/whatwg/html/issues/3577#issuecomment-2294931398). While button actions benefit greatly from the first proposal, it is not required to make this one worthwhile; even with limited method support, button actions can dramatically simplify web authorship. Details, FAQs, and alternatives can be found in the [full proposal](https://triptychproject.org/proposals/button-actions), with some evidence of its utility excerpted below. A formal pull request will follow on shortly—we'd love to gauge implementer interest in the meantime. ## Examples Supporting button actions makes common web patterns simpler, more secure, and more convenient for web authors, while also enabling more complex patterns that were previously impossible or prohibitively complex in HTML. ### Authentication One of the most common actions on the web, "logging out," cannot be properly modeled
Posted by alexpetros on Apr 3, 2026, 4:38 PM
Tags
Related issues
- Add 65536 size support for maps
- TypeScript 7.1 Iteration Plan
- nvim-treeconfig: upstream nvim-treesitter
- [FEATURE] Support multiple Connector accounts (same connector, different accounts) in Claude and Claude Code on the web (claude.ai/code)
- > We were imposed GitHub for so many exercises!
- Add support for Visual Studio 2026 Integration
Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments
support (Software)
Add 65536 size support for maps
TypeScript 7.1 Iteration Plan
nvim-treeconfig: upstream nvim-treesitter
Add the "action" and "method" attributes to <button>
[FEATURE] Support multiple Connector accounts (same connector, different accounts) in Claude and Claude Code on the web (claude.ai/code)
> We were imposed GitHub for so many exercises!
Add support for Visual Studio 2026 Integration
Support for Helm v4
Add the "action" and "method" attributes to <button>
### What is the issue with the HTML Standard? ## Description Currently, the `<button>` element supports the `formaction` and `formmethod` attributes, which let it change the `action` and `method`, respectively, of its parent `<form>`. Buttons should also support the `action` and `method` attributes, which would allow the button to make HTTP requests without being wrapped in a form. This is the second of the [Triptych Proposals](https://triptychproject.org/), three (relatively) modest additions to HTML that would make it much more expressive. The first of these three is [PUT, PATCH, and DELETE support](https://github.com/whatwg/html/issues/3577#issuecomment-2294931398). While button actions benefit greatly from the first proposal, it is not required to make this one worthwhile; even with limited method support, button actions can dramatically simplify web authorship. Details, FAQs, and alternatives can be found in the [full proposal](https://triptychproject.org/proposals/button-actions), with some evidence of its utility excerpted below. A formal pull request will follow on shortly—we'd love to gauge implementer interest in the meantime. ## Examples Supporting button actions makes common web patterns simpler, more secure, and more convenient for web authors, while also enabling more complex patterns that were previously impossible or prohibitively complex in HTML. ### Authentication One of the most common actions on the web, "logging out," cannot be properly modeled
Comments (0)
No comments yet. Start the discussion.