News for hackers. Stuff that matters.
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

   <e-toast
    data-type="success"
    data-position="top-right"
    data-hide-after-n-seconds="5"
    data-close-icon="/images/close.svg"></e-toast>

For custom web components, maybe the author forgot that you don't need to prefix attributes with data ?
Re:Why Vanilla JavaScript by megous on Monday July 13, 2026 @03:42AM (#48889189)
You don't need it anywhere, unless you want to use dataset property.
Re:Why Vanilla JavaScript by guseyn on Saturday July 18, 2026 @12:42PM (#48959704)
All custom attributes must start with data, read the convention
Re:Why Vanilla JavaScript by megous on Sunday July 19, 2026 @06:01AM (#48966552)
The browsers disagree.