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

[whatwg] getElementsByClassName()

From: Shadow2531 <shadow2531@gmail.com>
Date: Fri, 3 Feb 2006 07:27:22 -0500
Message-ID: <6b9c91b20602030427u1404e0eciebe5b4f0a9cb445e@mail.gmail.com>
On 2/3/06, Shadow2531 <shadow2531 at gmail.com> wrote:
> O.K.  Then, it should be getElementByClassName*s*() where you have
> have 1 or more classname arguments.  If you pass more than 1 class
> name, both class names have to be present in the classname attribute
> for the element to match.

I just to be clear.  If you do getElementByClassName("this", "that",
"other"), should that only match elements that have all those in their
class attribute value or does it match any element that has "this" and
any element that has "that" and any element that has "other"?

I just want to be sure on the intended behavior.

Received on Friday, 3 February 2006 04:27:22 UTC

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