On Sep 30, 6:00 am, Joran Greef <jorangr...@gmail.com> wrote:
> Here's another interesting thing in Safari 4 I just found:
>
> localStorage.clear();
> localStorage.setItem('hello', 'world');
> localStorage.getItem('hello'); // Returns 'world'
> localStorage['hello']; // Returns 'world'
> localStorage.hello; // Returns 'world'
>
> localStorage.clear();
> localStorage.setItem('getItem', 'world');
> localStorage.getItem('getItem'); // Returns "TypeError: Result of
> expression 'localStorage.getItem' [hello] is not a function."
> localStorage['getItem']; // Returns 'world'
> localStorage.getItem; // Returns 'world'

Good find. File a bug with WebKit, please (https://bugs.webkit.org/
enter_bug.cgi).

I'm sure they'll fix it in a matter of days.

--
kangax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to