[whatwg] DOMTimeStamp binding
bzbarsky at MIT.EDU
Wed Feb 11 09:53:40 PST 2009
Kartikaya Gupta wrote:
>> 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.
> I get "number" in Opera and Firefox, and "object" in Webkit. Is there
> a reason Opera and Firefox bind the timestamps to numbers instead of
> the Date object?
In the case of Gecko, simply because no one wrote the code to do it, I
> Are there any websites that depend on this behavior?
Given the bugs Gecko has had with timeStamp (starting with inconsistent
units for it), I doubt sites depend on anything much here.
> Also, I'm not sure if WebIDL should say something for this; right now
> the DOM IDL files do a "typedef unsigned long long DOMTimeStamp",
> which corresponds to the Java binding but not the ECMAScript binding.
Yep. That's exactly the IDL Gecko uses.
More information about the whatwg