Hacker News new | ask | show | jobs
by eyelidlessness 1352 days ago
> That doesn't quite get you there, though. For example, it doesn't submit a form it is contained in when clicked.

Er sorry, I meant type="button" for both. Neither submit a form or do anything other than show the default interactive styles without JS.

> There are some use cases where a <button> won't work (eg if you want to use flexbox)

I’m not sure what you mean, and having a hard time imagining what you might mean. Can you elaborate?

1 comments

My example was wrong, your sibling comment [1] provided a better one.

[1] https://news.ycombinator.com/item?id=33173406