On Sun, 2 Aug 2009, Jeremy Orlow wrote:
On Sun, Aug 2, 2009 at 7:17 PM, 白石俊平 shumpei.shirai...@gmail.com wrote:
I'm implementing the HTML5 Web Storage using Gears
(http://code.google.com/p/gear5/), so I have several questions with
the spec.
-Storage.setItem(key, val)
--is key
Thanks, Ian.
--when value is null, should `setItem(key, null)` behave as like as
`removeItem(key)`? (localStorage.setItem(key, null);
alert(localStorage.length); -- what is value displayed?)
No, it's not the same as removeItem. It'll be set to 'null'.
This changed recently; it'll now
On Wed, 12 Aug 2009, �~Y��~_���~J平 wrote:
and, when passed value is undefined (e.g. `setItem(key)`), which
behavior will be correct?
On current implementation of browsers, I looked as follows.
- IE and Firefox raise error, (arguments number is incorrect)
- Webkit family persist it as string
I believe WebIDL says that a TypeError exception should be thrown, but it
was not immediately obvious to me how to derive this from the spec.
Ok, I understood what behavior is correct (and that current webkit's
behavior is a bit wrong).
very thanks.
On Wed, Aug 12, 2009 at 5:34 PM, Ian
On Wed, Aug 12, 2009 at 1:34 AM, Ian Hickson i...@hixie.ch wrote:
On Wed, 12 Aug 2009, į~Y―į~_ģäŋ~Jåđģ wrote:
and, when passed value is undefined (e.g. `setItem(key)`), which
behavior will be correct?
On current implementation of browsers, I looked as follows.
- IE and Firefox raise
Jeremy Orlow wrote:
and, when passed value is undefined (e.g. `setItem(key)`), which
behavior will be correct?
...
I believe this is the correct section of the spec to be looking
at: http://dev.w3.org/2006/webapi/WebIDL/#es-DOMString
If so, I think it's pretty clear that
Boris Zbarsky:
Given the actual example code (and not its description, which
doesn't match the code), the relevant section is
http://dev.w3.org/2006/webapi/WebIDL/#es-operations steps 1 through
3 in the third bullet point.
It looks to me like per the current spec text that will throw a
On Wed, Aug 12, 2009 at 4:26 PM, Cameron McCormack c...@mcc.id.au wrote:
Boris Zbarsky:
Given the actual example code (and not its description, which
doesn't match the code), the relevant section is
http://dev.w3.org/2006/webapi/WebIDL/#es-operations steps 1 through
3 in the third bullet
Hi,
I'm implementing the HTML5 Web Storage using Gears
(http://code.google.com/p/gear5/), so I have several questions with
the spec.
-Storage.setItem(key, val)
--is key allowed non-string type object?
--and when pass non-string object to key/value, is it automatically
converted to string?(I'm
On Sun, Aug 2, 2009 at 7:17 PM, 白石俊平 shumpei.shirai...@gmail.com wrote:
Hi,
I'm implementing the HTML5 Web Storage using Gears
(http://code.google.com/p/gear5/), so I have several questions with
the spec.
-Storage.setItem(key, val)
--is key allowed non-string type object?
Yes, but...
Hi,
OK, I'll check the Safari4's implementation.
Very thanks, Jeremy.
On Mon, Aug 3, 2009 at 11:41 AM, Jeremy Orlowjor...@chromium.org wrote:
On Sun, Aug 2, 2009 at 7:17 PM, 白石俊平 shumpei.shirai...@gmail.com wrote:
Hi,
I'm implementing the HTML5 Web Storage using Gears
11 matches
Mail list logo