[Bug 19571] .length should count optional arguments


--- Comment #4 from Erik Arvidsson <arv@chromium.org> ---
(In reply to comment #3)
> FWIW, I would expect the minimum amount of required parameters for
> DOMTokenList.prototype.add to be 1, not 0.

If that is the case we should update the IDL to:

add(DOMString token, DOMString... tokens)

There is no way to look at

add(DOMString... tokens)

and see that it needs at least one parameter.

You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 17 October 2012 19:57:11 UTC