• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug All anchors need href="#" at least or javascript: void;

Mike Creuzer

Well-known member
#1
The member_card template has:

Code:
<a class="close OverlayCloser"></a>
Without an href, this is not valid HTML (even though it works just fine). Ive just had people complain that the markup is incorrect :/

So I just figured you might want to do a regex search for all anchors that don't have href.
 

Mike Creuzer

Well-known member
#3
After looking into the issue, it was giving me a slightly different issue. Apparently there was a missing quote somewhere, so I assumed that the w3 validator was now required hrefs. Which I swear and older HTML standard used to?

ETA: Apparantly its not required but what it does do is offer, well, strange behavior in various browsers. Sometimes if an href isn't set the link disappears altogether.