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

[whatwg] getElementsByClassName

From: Gervase Markham <gerv@mozilla.org>
Date: Thu, 12 Jul 2007 15:08:31 +0100
Message-ID: <469635DF.4030705@mozilla.org>
Dan Dorman wrote:
> Granted, the most common case will indeed be asking for a single class
> name.  But, if we're going to the trouble of accepting multiple class
> names, it seems shortsighted to restrict the parameter for the
> multi-class case to a space-separated string, which is really just a
> kludgey way of representing a list (or array).

I definitely remember that there was a thread about this a while back, 
including the concern that getElementsByClassName("foo bar") might 
erroneously lead people to believe that the class names had to be 
present in that order.

I suggest that participants in this thread reacquaint themselves with 
the discussion in the previous one before having it again.

Gerv
Received on Thursday, 12 July 2007 07:08:31 UTC

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