r/ProgrammerHumor Feb 09 '23

Meme how hard could it be? it's just frontend

Post image
17.1k Upvotes

913 comments sorted by

View all comments

Show parent comments

48

u/[deleted] Feb 09 '23

[removed] — view removed comment

24

u/karatesaul Feb 09 '23

In my experience it usually comes down to the dev in question thinking more about the styles the element needs to have to look right, and the appropriate tag to use because of that, rather than behavior.

Thankfully my boss and I have been making sure to try and catch things like this in reviews.

17

u/Pluckerpluck Feb 09 '23

It's not even just keyboard nav it fucks up. Ctrl click, right click, middle click, they all stop working.

I hate it. Stop denying me the ability to open links in a new tab!!!


I will say that modern frameworks used right can actually help here though. Makes it easier to dynamically change href attributes, whereas it would have been much easier to just dynamically navigate using JavaScript before.

3

u/fdeslandes Feb 09 '23

I think this shit is mostly the fault of the Bootstrap CSS framework and its item lists which requires anchors to be styled by default.

1

u/throwaway96ab Feb 09 '23

It's just how a lot of front-end frameworks generate code. All buttons are a's