For those who are curious about its history, this is where it all began for the visited links to be that color by default.
Date: Mon, 12 Apr 93 02:38:29 -0500
Subject: NCSA Mosaic 0.13 released.
- Changed default anchor representations: blue and single solid underline for unvisited, dark purple and single dashed underline for visited.
great example of a code smell, too! JS needs to know about styles?
shouldn’t be styling in JS! make it asd/remove a class instead
need to know whether to load content or not? save it to local/session storage! don’t make a server call if it already exists!
need to enhance your tracking? include it with your payloads as it happens, you’re asking for race conditions
client side disabled local caching? great! working as intended. make a graceful fall-back
everything here is a short term problem that belies long term tech debt. tight coupling sounds sexy, but SOLID principals and The Law of Demeter exist to stop our codebases from rotting if we can’t change it, then it’s not software it’s hardware
TIL, thanks
For a long time this protection was so strict in firefox that even the dev tools was not allowed to see the
:visited
styles.I hate that, in the modern web, customizing is so important that websites want access to the link itself, instead of just stylizing the div outside like normal.
I’m not sure I understand the point you’re making?
That I don’t want any website customizing the color, font etc. of links. Therefore, they shouldn’t need access to any properties of those objects after they have been created.