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.
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.