1. 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;

Discussion in 'Resolved Bug Reports' started by Mike Creuzer, Jun 12, 2014.

  1. Mike Creuzer

    Mike Creuzer Well-Known Member

    The member_card template has:

    <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.
  2. Mike

    Mike XenForo Developer Staff Member

  3. Mike Creuzer

    Mike Creuzer Well-Known Member

    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.

Share This Page