Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ick. I think I'd rather just break my HTML and add random attributes.


Why is that better? You can use JSON here.

(I say this as someone who used to use random HTML attributes.)


I find it aesthetically displeasing, and I'm not convinced that abusing the class attribute to store metadata is "more correct" than just adding your own attributes which.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact