You’d think folks writing the HTML spec would know the difference between an HTML attribute and inline JavaScript but you’d be mistaken and that’s why we can’t open a modal dialog without client-side JavaScript in 2024.
🤷
PS. What would be great to have is:
<dialog modal open></dialog>
So that a modally-open dialog can be streamed from the server without requiring client-side JavaScript to trigger it open when it loads.
So I have this problem where I neglect to clean my insulated bottles or coffee thermoses sometimes, and the seals they have in the lid will, eventually, get moldy. Some manufacturers, like Fellow, can’t do anything for me but to sell me a whole new lid.
You know what Klean Kanteen does? They sell service kits (new pairs of seals) for all their lids, keeps them in stock, and charges like $4 for them! It was even cheaper to ship!
Actually, just now checked Fellow to see if they have gotten any better. I don’t know if it was because they launched a grinder in the meantime, but their parts selection is MUCH BETTER than it used to be. Kudos to them. The seals I wanted were just a dollar each.
Now, the #modal popups begging for newsletter signups are still atrocious, but I don’t know if there’s a negative climate impact to that…