What is Nostr?
Amelia Bellamy-Royds /
npub1dc2…2h2w
2024-01-16 02:05:04
in reply to nevent1q…uezk

Amelia Bellamy-Royds on Nostr: npub1zylk3…ct54n npub13muww…ghmys I believe the argument for using a separate ...

npub1zylk3x2cvl79r854gtnqjvh7cjns6zzynvf39llvfvh6gl89cgvslct54n (npub1zyl…t54n) npub13muww0msd7f45lfgh7rzw8nzwqs4f9gz9uhr7twx3xmmtlt9zlmq3ghmys (npub13mu…hmys) I believe the argument for using a separate attribute was to create good fallback to a regular checkbox, which I think is an important consideration.

I do think the boolean attribute is kind of a random inconsistent pattern, but on the other hand: there's nothing really consistent about how existing `<input>` elements work in HTML!

If it weren't for ARIA treating switches & checkboxes differently, I would have preferred to do this all with the CSS `appearance` property.
Author Public Key
npub1dc2j7ttk2z2ednnrckmvfkfrfexhj8ugy95rrsdxvt9m9n8huq8svf2h2w