From cd23bc6989ed793d8ba3dff9b065e056c7f3f84d Mon Sep 17 00:00:00 2001 From: Matt Pizzimenti Date: Tue, 13 Dec 2011 07:52:54 -0800 Subject: [PATCH] Updated docs to indicate IE6/7 are no longer limited to per-path storage --- README.md | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index ee45a1a0..9febabdb 100644 --- a/README.md +++ b/README.md @@ -24,30 +24,6 @@ store.js exposes a simple API for cross browser local storage store.js depends on JSON for serialization. -IE6/7 limitation ----------------- -Access to the userData behavior in IE6 and IE7 is restricted to "same directory" in the path of the URL, much like access to localStorage is restricted to "same domain" in the protocol and host name of the URL. In addition, just as localStorage cannot be accessed across sub domains, userData behavior cannot be accessed across sub-directories. - -Here are some examples to demonstrate the IE6 and IE7 limitations: - - // on http://example.com/path1/ - store.set('foo', 1) - - // on http://example.com/path1/test.html the value of "foo" - // is readable because we are in the same "directory" /path1/ - store.get('foo') == 1 - store.set('bar', 2) - - // on http://example.com/path2/ the values of "foo" and "bar" are not readable - // because we are not in the same "directory" - the directory is not /path2/ - store.get('foo') == null - store.get('bar') == null - - // on http://example.com/path1/subpath/ the values of "foo" and "bar" are not - // readable here either, because we are in the directory /path1/subpath/. - store.get('foo') == null - store.get('bar') == null - How does it work? ------------------ store.js uses localStorage when available, and falls back on globalStorage for earlier versions of Firefox and the userData behavior in IE6 and IE7. No flash to slow down your page load. No cookies to fatten your network requests. @@ -103,8 +79,8 @@ Supported browsers - Tested in Chrome 11 - Tested in Safari 4 - Tested in Safari 5 - - Tested in IE6 - - Tested in IE7 + - Tested in IE6 (limited to 1MB) + - Tested in IE7 (limited to 1MB) - Tested in IE8 - Tested in Opera 10 - Opera 10.54