3 ms·
Good stuff, except don't get too excited about `datalist`. It just doesn't have enough hooks to be actually useful for anything other than a little prototype.
by montroser 5mo ago
Good stuff, except don't get too excited about `datalist`. It just doesn't have enough hooks to be actually useful for anything other than a little prototype.
- iammrpayments 5mo agoI think I’ve tried building a combobox using datalist once but it didn’t work
- bombcar 5mo agoAs you learn more about “raw” html you find all sorts of very fun things that are - ah - not very well implemented if at all.
- jazzypants 5mo agoThe neat thing about HTML is that it's a living standard and anyone can contribute. Old bugs get corrected all the time simply because it annoyed a certain person enough for them to push a fix through the standards process. Unfortunately, it could be around a decade before all three major browsers finally implement the standard, and the fix might not be quite as clean as you originally imagined.
- tosti 5mo agoThe reason is that there are lots of webpage authors, lots of pages that use old standards and very few browser implementations. That made the browsers carry the burden of making it all work right for everyone.
- tosti 5mo agoCase in point: the keygen element.
- voidnap 5mo agoI've used a datalist for autocomplete suggestions and it's worked great.
- theandrewbailey 5mo agoI've had problems with <datalist> not showing when the input is misspelled, or when none of the <options> strictly begin with the input. I gave up and used an <ol> instead.