W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2006

[whatwg] getElementsByClassName()

From: Jim Ley <jim.ley@gmail.com>
Date: Fri, 3 Feb 2006 13:17:24 +0000
Message-ID: <851c8d310602030517k7c3184a1jc04ea18b38362fde@mail.gmail.com>
On 2/3/06, Gervase Markham <gerv at mozilla.org> wrote:
> This seems like a sensible change. Call it getElementsByClassNames()
> would make it obvious that if you supply multiple class names, you get
> only elements with all those names. And it would be a reasonably obvious
> reduction that if you just supply a single name, you would get all
> elements which had that one class name.

Rather than talk about technical details, can be talk about the actual
use cases please, working groups keep on creating things which need
implementing, testing etc. without once giving the use case.  This
thread is now 21 messages old and there's not one use case which is
fulfilled by a getElementsByClassName.  All the ones suggested are
fulfilled by the ability to attach events to a particular class name.

Jim.
Received on Friday, 3 February 2006 05:17:24 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:26 UTC