[whatwg] Re: getElementsByClassName

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. :-)

Aankhen

Received on Monday, 5 September 2005 10:28:32 UTC