re: Why it's important to give your HTML button a type VIEW POST

VIEW FULL DISCUSSION
 

Any insight as to why that's the default behavior?
Have they historically been first introduced without this attribute, so their only purpose would be to submit the surrounding form with their value attribute?

Back when I didn't know about this, I also expected the same behavior as you, an inert behavior (thinking that type="submit" was enough of a no-js solution for forms, since "reset" would also have been available since time immemorial)

code of conduct - report abuse