Bug Tracker

Ticket #3374 (closed feature: wontfix)

Opened 6 years ago

Last modified 5 years ago

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
Blocking: Blocked by:

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

osdetect.diff Download (564 bytes) - added by raccettura 6 years ago.
jQuery.os

Change History

Changed 6 years ago by raccettura

jQuery.os

comment:1 Changed 6 years ago by flesler

  • Cc raccettura.flesler added
  • need changed from Review to 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 5 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to wontfix

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.

Note: See TracTickets for help on using tickets.