[whatwg] Problems with DOMTokenString

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