RE: DOMStringMap - get keys, et length?

> -----Original Message-----
> From: public-html-request@w3.org [mailto:public-html-request@w3.org] On
> Behalf Of Jeff Schiller
> Sent: Wednesday, August 06, 2008 2:11 PM
> To: HTML WG
> Subject: DOMStringMap - get keys, et length?
> 
> 
> I think there should be a way to get a collection of key names from
> the DOMStringMap [1].  How about adding a fourth method to this
> interface:
> 
> DOMStringList keys();  // XXX4 ?
> 
> Where this returns a DOMStringList [2] of keys (with no specification
> on the order of keys, of course).

I think that any kind of key/value collection should have methods for
producing a list of the keys, as well as testing for the existence of a key.
One of the things I consistently hated about working in VBA in Excel was the
lack of this kind of functionality. :)

J.Ja

Received on Wednesday, 6 August 2008 22:03:22 UTC