Hacker News new | ask | show | jobs
by Etheryte 676 days ago
This is the worst of both worlds, it doesn't conform to the spec and it has incorrect semantics. See HTMHell [0] for a brief discussion on the topic, albeit with a slightly different example.

[0] https://www.htmhell.dev/8-anchor-tag-used-as-button/

1 comments

ok fine <a href="/" id="logout">logout</a> but at least / is safe to GET