Compare Revisions

DOM Storage guide

Revision 42679:

Revision 42679 by Nickolay on

Revision 42680:

Revision 42680 by a9udn9u on

Title:
DOM Storage
DOM Storage
Slug:
DOM/Storage
DOM/Storage
Tags:
JavaScript, DOM, Gecko, "Gecko DOM Reference", "Offline web applications", HTML5
JavaScript, DOM, Gecko, "Gecko DOM Reference", "Offline web applications", HTML5
Content:

Revision 42679
Revision 42680
n178      var iThisIndx;n178      var iThisIndx, oCouples;
179      for (var iCouple, iCouplId = 0, aCouples = document.cookie.
 >split(/\s*;\s*/); iCouplId < oCouples.length; ++iCouplId) {
180        iCouple = aCouples[iCouplId].split(/\s*=\s*/);
181        if (iCouple.length > 1) {
182          oCouple[unescape(iCouple[0])] = unescape(iCouple[1]);
183        }
184      }
n181        if (iThisIndx === -1) { oStorage.setItem(sKey, oStorage[sn187        if (iThisIndx === -1 || oStorage[sKey] !== oCouple[sKey])
>Key]); }> { oStorage.setItem(sKey, oStorage[sKey]); }
182        else { aKeys.splice(iThisIndx, 1); }188        if (iThisIndx !== -1) { aKeys.splice(iThisIndx, 1); }
t291      In Firefox the DOM&nbsp;storage data is stored in the <a clt297      In Firefox the DOM&nbsp;storage data is stored in the <a cl
>ass="external" href="http://kb.mozillazine.org/Webappsstore.sqlit>ass="external" href="http://kb.mozillazine.org/Webappsstore.sqlit
>e" title="http://kb.mozillazine.org/Webappsstore.sqlite">webappss>e" title="http://kb.mozillazine.org/Webappsstore.sqlite">webappss
>tore.sqlite file</a> in the profile folder (there's also chromeap>tore.sqlite file</a> in the profile folder (there's also chromeap
>psstore.sqlite file used to store browser's own data, <a class=" >psstore.sqlite file used to store browser's own data, <a class="l
>link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=59>ink-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=592
>2990" title="https://bugzilla.mozilla.org/show_bug.cgi?id=592990">990" title="https://bugzilla.mozilla.org/show_bug.cgi?id=592990">
>>notably for the start page - about:home</a>, but potentially for>notably for the start page - about:home</a>, but potentially for 
> other internal pages with "about:" URLs).>other internal pages with "about:" URLs).

Back to History