[Webkit-unassigned] [Bug 41645] localStorage setItem converting value argument to string before saving

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 3 23:42:38 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=41645





--- Comment #6 from David Hong <david.g.hong at gmail.com>  2011-09-03 23:42:38 PST ---
(In reply to comment #0)
> // let's store a boolean value
> window.localStorage.setItem('a', true);
> 
> // typeof returns string
> typeof window.localStorage.getItem('a');
> 
> Is this the correct behaviour or will this be fixed? I think this is a bug?

It seems like the new draft of the Web Storage API has changed to conform to this behaviour. Although it is still in DRAFT, it is worth mentioning.

See: http://dev.w3.org/html5/webstorage/#storage-0

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list