3 ms·
>What if there’s a bunch of options, but for [reasons] we don’t want a user to be able to select a subset of them? Let’s add the disabled attribute to an optgro
by VladVladikoff 5mo ago
>What if there’s a bunch of options, but for [reasons] we don’t want a user to be able to select a subset of them? Let’s add the disabled attribute to an optgroup
Seems broken in mobile safari, not actually disabled I can still select the disabled items.
- p2detar 5mo agoNot broken, but strange since it should be working on latest Safari. https://caniuse.com/mdn-html_elements_optgroup_disabled https://caniuse.com/mdn-html_elements_optgroup_disabled I think it may be a Safari bug.
- quantumleaper 5mo agoYour link states it's not supported in iOS Safari at all, even though it has been supported in macOS Safari since 2013.
- p2detar 5mo agoHa! You're right. Ironically, I was viewing it on my phone and I only saw the "Safari" column and not "Safari on iOS".
- tvmalsv 5mo agoCame here to mention the same thing. Very well be on me, tho. I’m using the Brave browser (is it safari-powered?) and on iOS 18.7.9, which is the newest my old iPhone X supports.
- somewhatgoated 5mo agoI think on iphone everything is safari powered(?) Also doesnt work for me on iPhone Firefox
- zamadatix 5mo agoThis is the kind of thing I struggle with on using native HtML for more than the basics. Even if you do enough reading and have enough confidence to write an article like this the comments end up with quirks, limitations, or notes on lack of support about different browser+device combos. Div soup is probably a bit far in the opposite direction, but even then it's at least pretty consistent and apparent what the quirks and limitations are because it aligns with what you or the framework wrote much more consistently.
- deleted 5mo ago[deleted]