News for hackers. Stuff that matters.
Re:Substituting JavaScript with HTML by city41 on Saturday October 14, 2017 @12:29PM (#15472889)
Why not use data attributes instead of classes? This is one of their intended use cases.
Re:Substituting JavaScript with HTML by curyous on Saturday October 14, 2017 @03:18PM (#15473725)
Data attributes seem like the right way to me.