W3C home > Mailing lists > Public > public-html-comments@w3.org > April 2008

Re: [whatwg] DOM Storage feedback

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 29 Apr 2008 01:20:08 +0200
To: "Brady Eidson" <beidson@apple.com>, "Ian Hickson" <ian@hixie.ch>
Cc: "WHATWG Mailing List" <whatwg@whatwg.org>, "public-html-comments@w3.org" <public-html-comments@w3.org>
Message-ID: <op.uacgfuyo64w2qv@annevk-t60.oslo.opera.com>

On Mon, 28 Apr 2008 23:14:03 +0200, Brady Eidson <beidson@apple.com> wrote:
> I would like to make sure that my understanding is correct here, since  
> you expressed doubt.
> Anne was asserting that since the interface for setItem() specifies a  
> DOMString as the input, anything you pass it will be stringified.   
> Therefore passing it the null value would be stringified to "null".   
> This is what you currently see in all the major browsers with  
> window.alert(null), for example, which is also specified as a DOMString  
> input parameter.
> Therefore a call to setItem("foo", null); becomes, in effect,  
> setItem("foo", "null");
> Is this correct?
> If so, the spec is fine as-is, and removeItem() is the only way to  
> remove an individual item.

This was what I was suggesting, yes.

Anne van Kesteren
Received on Monday, 28 April 2008 23:20:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:24 UTC