Opened 14 years ago
Closed 13 years ago
#3374 closed feature (wontfix)
Support jQuery.os
Reported by: | raccettura | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3 |
Component: | core | Version: | 1.2.6 |
Keywords: | os, detect, user agent | Cc: | raccettura.flesler |
Blocked by: | Blocking: |
Description
jQuery has a really handy for browser detection. In some cases it's also handy to detect OS. For example downloads, media players (WMP for Mac sucks), and even fonts (sometimes an extra pixel makes a difference for Mac OS X due to it's anti-aliasing).
I therefore propose adding jQuery.os
I've got a patch to get this started.
The biggest question is what OS's to detect. This should catch the big ones.
Attachments (1)
Change History (3)
Changed 14 years ago by
Attachment: | osdetect.diff added |
---|
comment:1 Changed 14 years ago by
Cc: | raccettura.flesler added |
---|---|
need: | Review → Test Case |
While possible, it's not something required on the core. I recall seeing 1 or more plugins that extend or even rewrite the browser object.
You can always add that as a plugin. If you think it can help somewhere in the core and you can show us where and how, we can surely add that, then.
comment:2 Changed 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
jQuery doesn't need this internally, and it would likely be as hard to get right as jQuery.browser. It could be done as a plugin and contributed to the plugin repository.
jQuery.os