monomi icon indicating copy to clipboard operation
monomi copied to clipboard

leverage a standard UA parsing library

Open paulirish opened this issue 13 years ago • 2 comments

the flaws of UA sniffing are due to 1) making assumptions about future UAs and 2) reinventing UA parsing and adding flaws.

for 2 you can at least leverage previous and robust work..

https://github.com/tobie/ua-parser uses ua-parser which comes from code Google uses to UA parse. plus it was ported by your colleague! :)

alternatively you could use https://github.com/bestiejs/platform.js/ which is the only other reliable parser in JS, IMO

paulirish avatar Jan 26 '12 16:01 paulirish

Sounds good... though the project is 18 months old. So is this a pull request? :-)

jamesgpearce avatar Jan 26 '12 18:01 jamesgpearce

it's certainly an opportunity for someone else. :)

/me fixes issue title

paulirish avatar Jan 27 '12 00:01 paulirish