Re:Why Vanilla JavaScript
by lenkite on Monday July 13, 2026 @02:23AM
(#48888623)
Regarding puzzling design choices, I am wondering at the preponderance of data attributes like
For custom web components, maybe the author forgot that you don't need to prefix attributes with data ?
[ Parent
| on HN ]
You don't need it anywhere, unless you want to use dataset property.
All custom attributes must start with data, read the convention