Went for a stroll around The Shire this afternoon.
Tags: tos
628
Monday, April 7th, 2025
Monday, March 31st, 2025
Went for a ramble in the countryside and felt Persephone’s return.
Monday, February 10th, 2025
Sand
Pacific coast
On the beach
Wednesday, January 29th, 2025
Giving the Salter Cane website a fresh lick of paint:
https://saltercane.com/
Saturday, January 25th, 2025
Really enjoying Dreamytime Escorts + Patients at The Albert
Wednesday, January 22nd, 2025
Wednesday session
Thursday, January 2nd, 2025
Thursday session
Tuesday, December 31st, 2024
2024 in photos
Here’s one photo from each month in 2024
Sunday, December 1st, 2024
Sunday session
Saturday, October 19th, 2024
2004 was the first year of the future
I enjoyed reading through these essays about the web of twenty years ago: music, photos, email, games, television, iPods, phones…
Much as I love the art direction, you’d never know that we actually had some very nice-looking websites back in 2004!
Saturday, October 12th, 2024
Spent the day making pumpkin ravioli from scratch. Turned out pretty good!
Wednesday, October 9th, 2024
Wednesday session
Friday, October 4th, 2024
Circles
Thursday, October 3rd, 2024
Angels in the architecture
Strolling around Strasbourg
Thursday, September 26th, 2024
The datalist element on iOS
The datalist
element is good. It was a bit bumpy there for a while, but browser implementations have improved over time. Now it’s by far the simplest and most robust way to create an autocompleting combobox widget.
Hook up an input
element with a datalist
element using the list
and id
attributes and you’re done. You can even use a bit of Ajax to dynamically update the option
elements inside the datalist
in response to the user’s input. The browser takes care of all the interaction. If you try to roll your own combobox implementation, it’s almost certainly going to involve a lot of JavaScript and still probably won’t account for all use cases.
Safari on iOS—and therefore all browsers on iOS—didn’t support datalist
for quite a while. But once it finally shipped, it worked really nicely. The option
s showed up just like automplete suggestions above the keyboard.
But that broke a while back.
The suggestions still appeared, but if you tapped on one of them, nothing happened. The input
element didn’t get updated. You had to tap on a little downward arrow inside the input
in order to see the list of option
s.
That was really frustrating for anybody on iOS using The Session. By far the most common task on the site is searching for a tune, something that’s greatly (progressively) enhanced with a dynamically-updating datalist
.
I just updated to iOS 18 specifically to see if this bug has been fixed, and it has:
Fixed updating the input value when selecting an
option
from adatalist
element.
Hallelujah!
But now there’s some additional behaviour that’s a little weird.
As well as showing the option
s in the autocomplete list above the keyboard, Safari on iOS—and therefore all browsers on iOS—also pops up the option
s as a list (as if you had tapped on that downward arrow). If the list is more than a few option
s long, it completely obscures the input
element you’re typing into!
I’m not sure if this is a bug or if it’s the intended behaviour. It feels like a bug, but I don’t know if I should file something.
For now, I’ve updated the datalist
elements on The Session to only ever hold three option
elements in order to minimise the problem. Seeing as the autosuggest list above the keyboard only ever shows a maximum of three suggestions anyway, this feels like a reasonable compromise.
Thursday, September 19th, 2024
Seville
Saturday, August 24th, 2024
Feasting on fresh Florida shrimp, corn, and tomatoes. 🦐 🌽 🍅