[whatwg] Storage.getItem() question

Johnny Stenback jst at mozilla.com
Thu May 4 15:25:29 PDT 2006

Hello all,

Currently the web apps spec states the following about the getItem() method:

The getItem(key) method must return the StorageItem object representing 
the key/value pair with the given key. If the given key does not exist 
in the list associated with the object, or is not accessible, then this 
method must return null. Subsequent calls to this method with the same 
key must return different instances of the StorageItem  interface.

The first sentence makes sense, but the last one conflicts with the 
first one and doesn't make sense to me. Why would each call to getItem() 
for the same key need to return a separate instance of the StorageItem 


More information about the whatwg mailing list