Skip to content

Commit

Permalink
no false positive note about session/local storage in ie8 compat mode
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Feb 10, 2010
1 parent 2aaf5c5 commit 29db3a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,9 @@ window.Modernizr = (function(window,doc,undefined){

// FWIW miller device resolves to [object Storage] in all supporting browsers
// except for IE who does [object Object]

// IE8 Compat mode supports these features completely:
// http://www.quirksmode.org/dom/html5.html
tests[localStorage] = function() {
return (localStorage in window) && window[localStorage] !== null;
};
Expand Down

0 comments on commit 29db3a5

Please sign in to comment.