[whatwg] getElementsByClassName() idea
alexey at feldgendler.ru
Sun Nov 5 01:55:05 PST 2006
On Sun, 05 Nov 2006 15:33:00 +0600, Anne van Kesteren <fora at annevankesteren.nl> wrote:
> I think this hasn't been suggested before. Perhaps the method should
> accept a DOMTokenString as argument instead of an array. This allows
> things like ele.getElementsByClassName(ele.className) etc. The only
> problem is how to get a DOMTokenString without first getting .className
> from somewhere. Perhaps it should be a constructor as well. 'x = new
> DOMTokenString("aaa bbb")'
How is it better than DOMString?
Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com
More information about the whatwg