News for hackers. Stuff that matters.
Re:If it goes somewhere, it’s a link. If it does something, ... by eyelidlessness on Wednesday October 12, 2022 @01:17AM (#33173165)
> 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?

Re:If it goes somewhere, it’s a link. If it does something, ... by Vinnl on Wednesday October 12, 2022 @04:22AM (#33174295)
My example was wrong, your sibling comment [1] provided a better one.

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