W3C home > Mailing lists > Public > public-html@w3.org > August 2008

RE: DOMStringMap - get keys, et length?

From: Justin James <j_james@mindspring.com>
Date: Wed, 6 Aug 2008 18:02:13 -0400
To: "'Jeff Schiller'" <codedread@gmail.com>, "'HTML WG'" <public-html@w3.org>
Message-ID: <084401c8f810$15276e50$3f764af0$@com>

> -----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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:21 GMT