W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2009

[whatwg] Web Storage: apparent contradiction in spec

From: Jens Alfke <snej@google.com>
Date: Tue, 25 Aug 2009 13:18:57 -0700
Message-ID: <777F28E3-1E5B-419B-BD43-DDF95CE6F9BE@google.com>
I've just noticed an apparent self-contradiction in the Web Storage  
spec (24 August draft).

Section 4.3 states:
> Data stored in local storage areas should be considered potentially  
> user-critical. It is expected that Web applications will use the  
> local storage areas for storing user-written documents.


Section 6.1 states:
> User agents should present the persistent storage feature to the  
> user in a way that does not distinguish them from HTTP session  
> cookies.

These statements are contradictory, because cookies don't store user- 
critical data such as documents. The user model of cookies is that  
they're conveniences (at best) for keeping you logged into a site or  
remembering preferences like font-size, so deleting them is no more  
than an inconvenience. If local storage is presented to the user as  
being cookies, then a user may delete it without understanding the  
consequences.

Potential result: "I was having trouble logging into FooDocs.com, so  
my friend suggested I delete the cookies for that site. After that I  
could log in, but now the document I was working on this morning has  
lost all the changes I made! How do I get them back?"

I suggest that the sub-section "Treating persistent storage as  
cookies" of section 6.1 be removed.

?Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090825/fed8b117/attachment.htm>
Received on Tuesday, 25 August 2009 13:18:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:15 UTC