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'
--~--~---------~--~----~------------~-------~--~----~
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