W3C home > Mailing lists > Public > public-webapi@w3.org > June 2006

Optional method arguments in the DOM

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 15 Jun 2006 18:36:29 +0200
Cc: "DOM mailing list" <www-dom@w3.org>
To: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <op.ta64e3cg64w2qv@id-c0020.driveway.uu.nl>


What do implementors and authors think of having more optional method  
arguments in the DOM where that makes sense? Take as example  
addEventListener. The last argument could be made to default to false for  
example when omitted so you only have to provide an event type and a  
listener when you don't need to use capture. Supporting optional arguments  
would of course only apply to bindings that actually support that.



Anne van Kesteren
Received on Thursday, 15 June 2006 16:36:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:21 UTC