News for hackers. Stuff that matters.
Re:Linting HTML using CSS by yokohummer7 on Sunday March 12, 2017 @04:43AM (#13849856)

  a:not([href])  
  a[href="#"],  
  a[href=""],  
  a[href*="javascript:void(0)"] { … }
Wait, what should I use instead then?
Re:Linting HTML using CSS by jacobr on Sunday March 12, 2017 @04:48AM (#13849866)
The button element should be used for interaction that is not navigation to a different url.
Re:Linting HTML using CSS by jontro on Sunday March 12, 2017 @05:39AM (#13849998)
What about anchors using name?
Re:Linting HTML using CSS by lexicality on Sunday March 12, 2017 @07:12AM (#13850211)
They've been deemed obsolete with HTML5 - you should use the id attribute on the element the <a> would be naming.
Re:Linting HTML using CSS by oneeyedpigeon on Sunday March 12, 2017 @07:00AM (#13850180)
Always supply an href so JavaScript-less viewers can still activate the link. Attach events via JavaScript rather than HTML attributes.
Re:Linting HTML using CSS by tompazourek on Sunday March 12, 2017 @04:54AM (#13849889)
I was thinking the same when I saw that... Not sure if it's viable, but maybe buttons?