Closed
Bug 495748
Opened 16 years ago
Closed 15 years ago
localStorage setItem to bool, getItem returns string
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
INVALID
People
(Reporter: adam.christian, Unassigned)
References
()
Details
Attachments
(1 file)
1.84 KB,
text/plain
|
Details |
Doing the following:
localStorage.setItem("setBool", true);
Appears to set the boolean item correctly, however running:
localStorage.getItem("setBool")
Returns a string, integer works correctly, so this appears to be a bug.
Attaching the mozmill test case.
Component: General → DOM: Mozilla Extensions
Product: Firefox → Core
QA Contact: general → general
Version: 3.5 Branch → Trunk
Comment 1•16 years ago
|
||
I think this is invalid. From http://www.w3.org/TR/webstorage/#storage:
Storage areas (both session storage and local storage) store strings. To store structured data in a storage area, you must first convert it to a string.
Updated•15 years ago
|
Attachment #380786 -
Attachment mime type: text/x-c → text/plain
Comment 2•15 years ago
|
||
Thanks Jeff. Reading the specification really makes this bug invalid.
Status: NEW → RESOLVED
Closed: 15 years ago
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → INVALID
Comment 3•15 years ago
|
||
Note that the spec has changed to support more than just strings and I filed bug 538142.
Assignee | ||
Updated•12 years ago
|
Component: DOM: Mozilla Extensions → DOM
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•