When used in conjunction with AppCache, the offline behavior of localStorage should be reasonably deterministic. I assume you were just using a page that had been "normally" cached and things weren't working 100%?
2009/7/30 ~:'' ありがとうございました <j.chetw...@btinternet.com> > Is localStorage read and write-able offlne? > > http://dev.w3.org/html5/webstorage/ > admittedly only a skim-read, but could not find any reference? > > > testcase: https://bug506639.bugzilla.mozilla.org/attachment.cgi?id=390836 > > works in a local directory with cookies for Opera and Safari, > but Mozilla using localStorage requires the file to be online to be read or > written to. > bug filed: https://bugzilla.mozilla.org/show_bug.cgi?id=507361 > > from a developer perspective this can be frustrating. > presumably users working offline might also expect to be able to read and > write as per cookies... > > best > > ~:" > > > >