← Back to context

Comment by tln

3 months ago

I haven't seen the proposal, but buttons can already set the form method (and action, and more). So I guess the "Button HTTP Requests" will just save the need to nest one tag?

    <form><button type="submit" formaction="/session" formmethod="DELETE"></form>
    <form action="/session" method="DELETE"><button type="submit"></form>

This proposal also includes the ability to update a target DOM element with the response from that delete action.