You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IE8's default settings don't allow the use of cookies or local/session storage on pages served from the hard drive, even after you "Allow Blocked Content" to allow JavaScript execution. So when viewing C:\Documents and Settings\username\filename.html, Modernizr 1.6 will test true for localStorage or sessionStorage, but attempts to get or set storage items will result in "is null or not an object" errors because the window.localStorage/window.sessionStorage will return undefined in this case.
Kind of an edge case, but I'm currently working on a toolkit of web controls that's specifically intended to be distributed as a ZIP and run locally, and accounting for this offline context was helpful.
The text was updated successfully, but these errors were encountered:
Thx for the suggestion.. we can actually revise this test since it uses a try/catch anyway.. something we should do.
thanks for the help.. we'll incorporate this fact into the inline docs.
IE8's default settings don't allow the use of cookies or local/session storage on pages served from the hard drive, even after you "Allow Blocked Content" to allow JavaScript execution. So when viewing C:\Documents and Settings\username\filename.html, Modernizr 1.6 will test true for localStorage or sessionStorage, but attempts to get or set storage items will result in "is null or not an object" errors because the window.localStorage/window.sessionStorage will return undefined in this case.
It's pretty easy to work around this:
Kind of an edge case, but I'm currently working on a toolkit of web controls that's specifically intended to be distributed as a ZIP and run locally, and accounting for this offline context was helpful.
The text was updated successfully, but these errors were encountered: