W3C home > Mailing lists > Public > public-geolocation@w3.org > July 2009

Re: Geolocation API LC review comments

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 14 Jul 2009 20:58:57 +1000
To: public-geolocation@w3.org
Message-ID: <20090714105857.GA10848@arc.mcc.id.au>
Cameron McCormack:
>   navigator.geolocation.getCurrentPosition(successCallback,
>                                            errorCallback,
>                                            {maximumAge:Infinity, timeout:0});
> The type of the maximumAge attribute on the PositionOptions interface is
> long.  According to Web IDL, Infinity will be converted to an IDL long
> of value 0.
>   http://dev.w3.org/2006/webapi/WebIDL/#es-long
> If you want to allow Infinity as a value, then you’ll need to either
> make maximumAge be of type float or any (and if any, you’d need to
> define behaviour when any other type is given).  Alternatively, you
> could recommend to pass in the maximum signed 32-bit value to
> maximumAge, 2**31-1.

In response to some recent discussions on IRC[1], I’ll probably be
changing the way ECMAScript values get converted to IDL integer types
such that Infinity will become the largest value the type supports.
This would render the above point moot, so you can ignore this one for



[1] http://krijnhoetmer.nl/irc-logs/whatwg/20090714#l-226

Cameron McCormack ≝ http://mcc.id.au/
Received on Tuesday, 14 July 2009 10:59:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:33:55 UTC