[whatwg] Re: getElementsByClassName

Aankhen aankhen at gmail.com
Mon Sep 5 10:28:32 PDT 2005

On 9/5/05, Ian Hickson <ian at hixie.ch> wrote:
> > If multiple class names really need to be handled, my suggestion would
> > be to take a single array as a parameter, e.g.
> > `getElementsByClassName(["foo"])` and `getElementsByClassName(["foo",
> > "bar"])`.
> What is the problem with allowing multiple arguments in JS?

One of the earlier messages said something which I basically
interpreted as "variable arguments = bad", so I suggested an
alternative.  If it were up to me, I'd just use them. :-)


More information about the whatwg mailing list