W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

[Bug 19571] .length should count optional arguments

From: <bugzilla@jessica.w3.org>
Date: Wed, 17 Oct 2012 19:57:09 +0000
To: public-script-coord@w3.org
Message-ID: <bug-19571-3890-TmodHlOXtB@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19571

--- 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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:07 UTC