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

[whatwg] getElementsByClassName()

From: Dean Edwards <dean@edwards.name>
Date: Mon, 23 Oct 2006 17:00:14 +0100
Message-ID: <180c22a90610230900g2a7ef25l42e2008b22071a2e@mail.gmail.com>
On 23/10/06, Charles McCathieNevile <chaals at opera.com> wrote:
> "adding stuff people want instead of referring them to vapourware" isn't a
> very clear distinction. Since both are currently vapourware, it would be
> helpful to ahve some rational basis for determining that one is desired
> and another is not. Like James, I so far don't see that in this discussion.
>

This has been debated to death. People want this function. So I think
we should add it. The only arguments against are that there are
potentially better solutions, like matchAll/matchSingle. I don't think
that is a good enough reason to not include it. First, it is analogous
to getElementsByTagName. Second, alternatives are not currently
implemented.

It is not uncommon for API's to provide more than one way to achieve
the same end. I don't see why the DOM should be any different. It is
not going to break anything and people want it -- so let's spec it. I
haven't heard a good argument against inclusion yet and we are on the
87th comment in this thread.

-dean
Received on Monday, 23 October 2006 09:00:14 UTC

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