Ian Hickson wrote:
>From the perspective of development tools (and perhaps thus developers), this pseudo-array interface is unfortunate. Storage is neither an array of entries nor an associative array. As such, tools like Firebug will just show it as Object with a curious property 'length' which looks like a key but is not. I think a getLength() function would be more true to the character of the type.On Tue, 28 Apr 2009, John J Barton wrote: I could not figure out from the WebIDL what happens in this case:See WebIDL for the definition of the [IndexGetter] syntax. sessionStore[2] = "howdy"; // no other keys in sessionStore I guess this does not work like _javascript_ arrays or objects, rather I expect it fails? jjb |
- Storage 'length' and enumeration John J. Barton
- Re: Storage 'length' and enumeration Ian Hickson
- Re: Storage 'length' and enumeration John J Barton
- Re: Storage 'length' and enumeration Ian Hickson
- Re: Storage 'length' and enumeration John J. Barton
- Re: Storage 'length' and enumerati... Ian Hickson
- Re: Storage 'length' and enume... John J. Barton
- Re: Storage 'length' and e... Ian Hickson
- Re: Storage 'length' and e... John J. Barton
- Re: Storage 'length' and e... Ian Hickson
- Re: Storage 'length' and e... John J Barton
- Re: Storage 'length' and e... Anne van Kesteren
- Re: Storage 'length' and e... John J Barton
- Re: Storage 'length' and e... Ian Hickson
- Re: Storage 'length' and e... John J Barton
