Email or username:

Password:

Forgot your password?
5 posts total
Jake Archibald

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 šŸ˜€

jakearchibald.com/2024/how-sho

Show previous comments
Timothy Chien

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

Marius Gundersen

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

Jake Archibald

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.

Jake Archibald

`el.className` and `el.htmlFor` have such unusual names because `class` and `for` used to be reserved words in JS. That hasn't been true for property names for 10+ years.

Firefox is experimenting with adding `el.class` and `el.for`, yay!

github.com/whatwg/html/issues/

Stuart Langridge

@jaffathecake this year has been a succession of discoveries of stuff which I have believed is true for years (sometimes decades) and I have never revisited. Radix parameter to parseInt()? Not required. NodeLists don't have .forEach? Yes they do. Property names are allowed to be reserved words? This is the latest surprise. Next someone will tell me that with{} is OK or something

Jake Archibald

Since it's Christmas: CARROT IN A BOX youtu.be/emidnnQi-bg?si=zWPieF

(Sorry for the Jimmy Carr link, the other copy of the video is region locked)

sam henri gold

@jaffathecake that and the joe wilkinson potato throw saga on taskmaster are easily the two best moments in television history

Jake Archibald

You probably shouldn't ever ship view transitions like this, but eh I had fun.

Demo: simple-set-demos.glitch.me/gro

Show previous comments
Stuart Langridge

@jaffathecake next do the "genie" thing from old versions of the osx dock where a page goes down into an icon. Could be a whole new field of mid-2000s visual transition effects šŸ™‚

Cassidy James :eos: :gg: :fh:

@jaffathecake this is legit pretty cool for slide decks. HTML presentation stuff I've seen is usually a single giant file with a bunch of JS, but native HTML and CSS where each slide is a distinct document? Iā€™m down.

Go Up