[whatwg] getElementsByClassName() idea

Lachlan Hunt lachlan.hunt at lachy.id.au
Sun Nov 5 03:09:02 PST 2006

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

More information about the whatwg mailing list