I have recently been working on projects that require window.localStorage; However I've found that what is drafted by WhatWG is inconsistent with the common browsers that are out there who seem to implement HTML5 specs in quite detail - like Chromium, WebKit, and etc.
I initially thought that the bug was implementor's fault - however it seems like the spec isn't finalised or up to scratch. So this post is a reminder for someone to chase it up.
In short, storage interface's
- Code: Select all
setItem(DOMstring key, in any data);
is not the case. All of the browsers that support windows.localStorage convert argument data as string before storing.
More detailed information can be found in my original bug report to the WebKit community.