https://bugzilla.wikimedia.org/show_bug.cgi?id=27644

--- Comment #5 from Reedy <s...@reedyboy.net> 2011-02-23 08:28:06 UTC ---
navigator.appVersion
"5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.20 (KHTML, like Gecko)
Chrome/11.0.672.2 Safari/534.20"
navigator.appVersion.split('Chrome')
["5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.20 (KHTML, like Gecko) ",
"/11.0.672.2 Safari/534.20"]
navigator.appVersion.split('Chrome')[1]
"/11.0.672.2 Safari/534.20"

I guess that possibly means Safari gets a false positive on Chrome, though the
"version number" is much higher


What also wouldn't suprise me, if there were some browsers that have changed
their useragent formatting over the years...

navigator.appVersion.split('Chrome/')[1]
"11.0.672.2 Safari/534.20"
parseFloat(navigator.appVersion.split('Chrome/')[1])
11


That works...

So, that's 3 we can do with the same Format - FF, Chrome, IE

N-2 solutions is better than N solutions (where N is the number of browsers)

Possibly Opera and Safari as one (bar iPad)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to