W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2009

Re: DOMTimeStamp binding

From: Darin Adler <darin@apple.com>
Date: Wed, 11 Feb 2009 10:06:14 -0800
Cc: whatwg@whatwg.org, public-webapps@w3.org
Message-id: <6AACBF67-F82E-432E-9ACC-1376F1902E9E@apple.com>
To: Kartikaya Gupta <lists.webapps@stakface.com>

On Feb 11, 2009, at 9:38 AM, Kartikaya Gupta wrote:

> DOM 3 Core says this about DOMTimeStamp:
>
>> For Java, DOMTimeStamp is bound to the long type. For ECMAScript,  
>> DOMTimeStamp
>> is bound to the Date type because the range of the integer type is  
>> too small.
>
> However, when I do this:
>
>> var e = document.createEvent('Events');
>> alert( typeof e.timeStamp );
>
> I get "number" in Opera and Firefox, and "object" in Webkit.

I get "number" in WebKit.

     -- Darin
Received on Wednesday, 11 February 2009 18:07:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:30 GMT