W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2006

Re: Optional method arguments in the DOM

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Thu, 29 Jun 2006 13:17:37 -0700
Message-ID: <c9e12660606291317w45f210b2ka7aa8a1dd5b2e781@mail.gmail.com>
To: "Anne van Kesteren" <annevk@opera.com>
Cc: "DOM mailing list" <www-dom@w3.org>

This would be nice:

document.evaluate( expression, contextNode );


On 6/29/06, Anne van Kesteren <annevk@opera.com> wrote:
>
> On Fri, 23 Jun 2006 16:50:52 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> > Now there are several obvious modifications to this system that could be
> > made:
> >
> > [...]
>
> How about having specified in the IDL which parameters default to certain
> value when omitted? So both the parameter being omitted is specified and
> it's value to be assumed by the UA is.
>
>    void() test(foo, [bar] null)
>
> Would be a way to do it I guess. (I don't really like the syntax though...)
>
>
> --
> Anne van Kesteren
> <http://annevankesteren.nl/>
> <http://www.opera.com/>
>
>
>


-- 
http://dhtmlkitchen.com/
Received on Thursday, 29 June 2006 20:17:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:40:09 UTC