W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2007

[whatwg] Problems with DOMTokenString

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 17 May 2007 06:29:06 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0705170532540.1180@dhalsim.dreamhost.com>
On Thu, 1 Mar 2007, Maciej Stachowiak wrote:
> > > 
> > > If you add DOMString index(unsigned i) and unsigned length, you 
> > > would also have the ability to enumerate the classes easily, which 
> > > the API as currently specced lacks.
> > 
> > Do you think we should add this?
> 
> I think it would be useful to have some way to enumerate the current 
> list of tokens through this API. It seems good for completeness, and I 
> could imagine it being useful for JavaScript/AJAX libraries given the 
> way they implement compound widgets.
> 
> Indexing actually isn't the world's best way to do that from point of 
> view of efficient implementation, but it's the standard for this sort of 
> thing in the DOM and class lists are unlikely to have a huge number of 
> items.

Added.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 16 May 2007 23:29:06 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:55 UTC