I'm working on an application that will use HTML5 localStorage. I can't find anywhere whether there are any restrictions on the key besides the fact that it must be a string.
Specifically I'd like to know if I can use a URL as a key in localStorage across all browsers that support localStorage (eg, are symbols like :/?#._-=+@!$%^&*()[]{}|<>
allowed to be used in the key?).
Also: what about whitespace? Is that allowed in a localStorage key across browsers?
I found this topic but it only appears to have tested acceptable strings in localStorage values (not keys).