top | item 41206239

(no title)

whbrown | 1 year ago

Why make it a link if you aren't linking to anything?

discuss

order

andrewfromx|1 year ago

so you don't have to set "cursor: pointer" in css

KTibow|1 year ago

You should really use a button for this. Using anything else is semantically incorrect, and the "it comes with bad styles" argument doesn't make sense given a CSS reset is under 10 lines of code, or even less if you use the `all` style.

dzaima|1 year ago

And it gives some baseline accessibility functionality. Sucks that there isn't any gerneral "I am clickable" element that neither has bad default click behavior, nor has its own likely-unfitting styling.

williamdclt|1 year ago

why avoid so hard to make it a `submit` for a `<form method="POST" action="/logout">`, which is semantically correct and removes all the need for any javascript (logouts have never needed JS after all)?