Skip to main content

Bug Tracker

Side navigation

#6695 closed enhancement (wontfix)

Opened June 21, 2010 01:24AM UTC

Closed October 15, 2010 06:14PM UTC Update

Reported by: stakach Owned by:
Priority: undecided Milestone: 1.4.3
Component: support Version: 1.4.2
Keywords: html5 feature detection Cc:
Blocked by: Blocking:

Please add some of the HTML5 features to jQuery Support:

$.extend($.support, {

files: typeof FileReader != 'undefined',

cache: !!window.applicationCache,

webdb: !!window.openDatabase,

geolocation: !!navigator.geolocation,

history: !!(window.history && window.history.pushState && window.history.popState),

messaging: !!window.postMessage,

microdata: !!document.getItems,

serverSentEvents: typeof EventSource != 'undefined',

localStorage: !!window.localStorage,

undo: typeof UndoManager != 'undefined',

websockets: !!window.WebSocket,

webWorker: !!window.Worker


Tests for support for the HTML5 File API (

Tests for cache manifest support (

Tests for webSQLDatabase support (

Tests for HTML5 geolocation support (

Tests for joint session history support (

Tests for cross-document messaging support (

Tests for microdata support (

Tests for server-sent event support (

Tests for local storage support (

Tests for undo management support (

Tests for WebSocket support (

Tests for Web Worker support (

Attachments (1)
  • support.html5.js (1.6 KB) - added by stakach June 21, 2010 01:27AM UTC.

    Adds HTML5 feature detection to jQuery

Change History (3)

Changed August 09, 2010 02:17AM UTC by dmethvin comment:1

We should weigh the cost of running this code on every page; right now nearly all the properties are used by core itself.

Changed August 26, 2010 04:51PM UTC by comment:2

Using something like Modernizr is going to be a more scalable solution for something like this.


Changed October 15, 2010 06:14PM UTC by dmethvin comment:3

priority: → undecided
resolution: → wontfix
status: newclosed

Per the docs for
, none of these feature tests belong in core unless jQuery core itself needs them. Modernizr is a better general solution.