4 ms·
> It seems like a bad idea to check for capabilities by parsing user agent string anyway In theory yes. But for some cases it's just not realistic to do featur
by josteink 10y ago
> It seems like a bad idea to check for capabilities by parsing user agent string anyway
In theory yes. But for some cases it's just not realistic to do feature-detection, and then you move on to the second best option you have.
I'm pretty sure we'll have user-agent related bugs for quite a time to come.
- annnnd 10y agoSure, but that is for some very limited cases. And even then you should generally check for browser and its version, not the OS. Browser makers go to great lengths to make browsers run identically on all supported platforms.