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

[whatwg] getElementsByClassName() idea

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sun, 05 Nov 2006 22:09:02 +1100
Message-ID: <454DC64E.3040905@lachy.id.au>
Lachlan Hunt wrote:
> Anne van Kesteren wrote:
>> This allows things like ele.getElementsByClassName(ele.className) etc.
> 
> anything that accepts a DOMString will automatically accept a DOMTokenString, 
> including getElementsByClassName.  So your example will already work.

It seems getElementsByClassName has been changed to accept an array, not 
a DOMString and I didn't realise.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Sunday, 5 November 2006 03:09:02 UTC

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