W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2010

[whatwg] whatwg Digest, Vol 71, Issue 72

From: Anthony <antscape@gmail.com>
Date: Wed, 24 Feb 2010 22:55:25 +1100
Message-ID: <93e5bf511002240355j68dd8fdawb61662fe8d4b56fa@mail.gmail.com>
On Tue, Feb 23, 2010 at 8:56 PM, Adam Barth <w3c at adambarth.com> wrote:

> The document.cookie API is kind of terrible.  Web developers shouldn't
> have to parse a cookie-string or prepare a properly formated
> set-cookie-string.  Here's a proposal for an HTML cookie API that
> isn't as terrible:
>
>
> https://docs.google.com/Doc?docid=0AZpchfQ5mBrEZGQ0cDh3YzRfMTRmdHFma21kMg&hl=en
>
> I'd like to propose we include this API in a future version of HTML.
> As always, feedback welcome.
>
> Adam
>
Sounds good, just a little suggestion:
Maybe something like document.cookies.push({name: "a", value: "b"}) and/or
document.cookies["a"]="b". Something similar to HTMLElement.style?

Anthony
Received on Wednesday, 24 February 2010 03:55:25 UTC

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