W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2002

Re: Level 3 XPath doesn't feel right

From: Philippe Le Hegaret <plh@w3.org>
Date: 31 Oct 2002 10:35:08 -0500
To: Dominic Chambers <dominic.chambers@bigfoot.com>
Cc: WWW DOM <www-dom@w3.org>
Message-Id: <1036078509.29533.68.camel@jfouffa>

On Tue, 2002-10-29 at 21:11, Dominic Chambers wrote:
> 2. The resolver, type, and attributes should be made optional for the ECMAScript binding,
>     since almost nobody will ever use them, and instead just pass nulls anyway.

As far as I know, ECMAScript (or ECMAScript implementations?) allows you
to ignore the remaining parameters, so
 document.evaluate("foo/bar", node, null, null, null)
is equivalent to:
 document.evaluate("foo/bar", node)


Philippe
Received on Thursday, 31 October 2002 10:35:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:56 GMT