Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
event.timeStamp - FireFox #1124
Comments
|
Thanks for the report. However, I'm not sure how to proceed here. If you're not getting the correct values, please report an issue to the jQuery project at https://github.com/jquery/jquery/issues with a test case using jQuery on JS Bin. Then, we'll be able to see what's the reason and maybe report an issue to Firefox. Without a bug report with a test case I don't think there's much we can do. |
|
Sorry, I posted it where you told me to post it in the previous response. Should i kill this and move it ? |
|
I guess we can continue here for now until we settle up whether there's a jQuery issue or a docs one. I see similar behavior in Chrome, Firefox, Safari & Edge. Only IE shows time from January 1, 1970. According to the spec:
The time origin link redirects to another spec that says:
which suggests our docs are incorrect as we document the legacy IE behavior. We should update the documentation then. |
|
MDN also documents it in this way: https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp
|
|
Just FYI, I tested it on my android device, and it showed the time from 1970. |
|
On what Android version and what browser?
--
Michał Gołębiowski-Owczarek
|
|
Here's info about when it changed in Chrome: https://googlechrome.github.io/samples/event-timestamp/ Since the standard have changed, we should perhaps just update the docs. We might try normalizing it for IE, though I'm not sure how easy that would be as we'd need a way to find the page load time. Perhaps it's best to just update the docs that it's no longer time from 1970 but from the current document timeline. |
|
The critical thing about We should probably just update the docs to say that |
This is regarding https://api.jquery.com/event.timeStamp/
According to the note : "Note: Due to a bug open since 2004, "
I just tested it and it is still not working as described (for FireFox)
I contacted mozilla and asked them if they could finally fix this.
https://bugzilla.mozilla.org/show_bug.cgi?id=238041#c37
The response i got back was "This bug is not about the current Event.timeStamp" Sounds like they are saying "it is working as designed"
So, is the jQuery code incorrect ? or the documentation incorrect ? or is the response incorrect and it is the bug ? It would be nice for this to work. If the FireFox response is incorrect, can you contact them and point out what the exact problem is, as i have not looked at the source code to know what specifically is the problem,
Thank you !
Oh and if it is correct and the documentation is not, then i already tried reporting that here :
jquery/jquery.org#138