| ▲ | The Difference Between a Button and a Link(unplannedobsolescence.com) | |
| 18 points by alexpetros an hour ago | 3 comments | ||
| ▲ | singpolyma3 36 minutes ago | parent | next [-] | |
You can have button actions today by wrapping the button in a form tag. The article even shows this. The implication seems to be somehow that this is no good because what if you're already in a form tag? The answer is to move the two actions which aren't actually related to the form outside of the form tag and give them their own unique form parents. | ||
| ▲ | TonyAlicea10 24 minutes ago | parent | prev | next [-] | |
> Buttons regularly perform navigations. Clicking a logout button navigates the current page to a logged-out one; clicking a “search” button navigates the current page to the query results. This seems to conflate appearance with semantics. If an element causes a navigation, I make it a link. Whether it looks like a button is irrelevant, that’s CSS. I always choose one or the other by intended behavior first, and that always works out great. That said, I like the idea. | ||
| ▲ | wxw 30 minutes ago | parent | prev [-] | |
> 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. | ||