I'm excited that we're finally getting a customisable <select> on the web. However, there's one detail of it I'm really not sure about, and I'd like to hear your thoughts.
Have your say before it's too late š
https://jakearchibald.com/2024/how-should-selectedoption-work/
@jaffathecake Is <option> continue to be text only? If so, it should be easy to duplicate the text in <selectedoption>.
Speak from my brief experience as an implementer, anything resembling <svg:use> opens a rather big can of worms.
@jaffathecake I would vote for doing nothing by default, and having the other scenarios solved with js. If you need it to do something advanced then bring a bit of javascript code to do that. It's much better than having to do something weird or performance problematic by default with only a complicated way to prevent it.
Thanks to everyone who gave feedback on this. The group resolved on going with the first option in this post: Clone once when the selected option switches, and that's it.