5/16/2026 at 5:23:20 PM
This was a fun little read. Just through testing the examples, I also learned datalist does not seem to work well on mobile safari (which is a large enough market I might even say there’s essentially no scenario in which it’s worth using if there’s a compatibility issue).by appplication
5/16/2026 at 8:05:19 PM
The datalist examples definitely work on my iPhone. They integrate into the autocomplete suggestions above the native iOS keyboard. There’s no way to browse all the suggestions, but I suppose that’s not an intended use case for datalist.However, the disabled attr on group definitely does not work!
by tshaddox
5/16/2026 at 9:04:18 PM
It seems the autofill bar only populates with the first three items in the datalist and also does not clear when navigating to a regular text field like this one. Kind of an interesting way to have screwed it up.by king_geedorah
5/17/2026 at 4:15:07 PM
It initially populates with the first 3 options, but it also updates as you type, with what appears to be a case-insensitive prefix filter.by tshaddox
5/16/2026 at 8:12:21 PM
That’s funny, in my case it tries to autofill my contact informationby appplication
5/17/2026 at 5:29:54 AM
Ugh this is the dose of cold water from reality that I didn't want but definitely needed.More than a decade ago I had a project that used a pretty aggressive input-suggestion widget on the UI. We used a jQuery plugin for it and it was by far the most complicated part of the frontend. In fact, it was the main use-case for jQuery in that project.
Reading the article, I thought it would be pretty much a breeze re-implementing that frontend in a lightweight JS-minimalist version. But of course, unless I ship my machine to the users, not really. Sad state of affairs.
Nonetheless, I'm really impressed with what's included in the HTML spec nowadays! I haven't kept-up with developments in the spec since I read all about XHTML in high school. I ought to take some time every now and then to see what's changed though, again, browser compatibility is a PITA today as it was back in high school.
by yallpendantools
5/16/2026 at 7:23:54 PM
Doesn't work with Firefox on Android either.by VorpalWay
5/16/2026 at 5:49:44 PM
Way back when I was working my first job, datalist didn’t work on Firefox. That’s what got Firefox removed from the list of supported browsers.It has been a problem for a long time if you want to support anything other than Chrome.
by MattGaiser
5/16/2026 at 7:00:30 PM
> It has been a problem for a long time if you want to support anything other than Chrome.That's partially because Chrome keeps adopting standards nobody else wants to support.
by Levitating
5/16/2026 at 7:01:59 PM
Both things can be true. Chrome supports a bunch of non standard APIs but it also has some of the best coverage of standard APIs.by afavour
5/17/2026 at 10:22:20 AM
With Google coming up with most of the new stuff and having chairs in the committees, that's hardly surprising.by tosti
5/16/2026 at 6:40:42 PM
They work well but not with GBoard on iOS.by carlosjobim
5/16/2026 at 7:40:45 PM
Mind that input + datalist is the HTML equivalent of the Windows combobox, once generally regarded as the worst UI element ever. (This was enjoying meme status in usability related articles and write-ups. So probably not a recommendation.)by masswerk
5/17/2026 at 8:14:46 AM
What’s the better alternative for letting the user input arbitrary text with an easier way to input known options?by xigoi