[whatwg] getElementsByClassName()
Lachlan Hunt
lachlan.hunt at lachy.id.au
Mon Sep 5 06:50:08 PDT 2005
Jim Ley wrote:
> On 9/5/05, Lachlan Hunt <lachlan.hunt at lachy.id.au> wrote:
>>I may not be understanding what you mean, but if optional parameters
>>aren't language independant, shouldn't it be defined in a more language
>>independant way, so that any non-ECMAScript languages can still
>>implement this?
>
> Yes, DOM currently is language agnostic, however the optional
> className parameters aren't compatible with languages which can't do
> that. So as defined now getElementsByClassName would not manage to do
> that.
In that case, should it be redefined as:
NodeList getElementsByClassName(in DOMString classNames);
where classNames is a string of space separated class names? That would
be just as easy to implement and would work with languages that don't
support optional parameters.
--
Lachlan Hunt
http://lachy.id.au/
More information about the whatwg
mailing list