Bug Tracker

Modify

Ticket #8779 (closed bug: invalid)

Opened 2 years ago

Last modified 9 months ago

IE9: 'Date' is undefined in jquery.js

Reported by: ewuch@… Owned by: ewuch@…
Priority: low Milestone: 1.next
Component: core Version: 1.5.2
Keywords: ie9 Cc:
Blocking: Blocked by:

Description

I'd read much about how jQuery 1.5.1 is supposed to be compatible with IE9. However, when testing it, I get a bug that 'Date' is undefined in jquery.js (line 811). I tried 1.5.2 and the same thing happens (line 805 of jquery.js). Will jQuery be compatible with IE9 at some point?

Change History

comment:1 Changed 2 years ago by timmywil

  • Keywords ie9 added
  • Owner set to ewuch@…
  • Status changed from new to pending

Thank you for filing a report on the jQuery bug tracker! I'm not sure to what you're referring. Please provide a test case on  http://jsfiddle.net that reproduces your issue so we can confirm that this is an issue with jQuery.

comment:2 Changed 2 years ago by rwaldron

  • Component changed from unfiled to core

This reads like an IE9 bug, not a jQuery bug. Date() is standard.

comment:3 Changed 2 years ago by ewuch@…

  • Status changed from pending to new

It turns out the bug seems to have occurred from more of a race condition that had not come up other than in IE9. There was a $(document).ready(...) which ultimately resulted in the document getting removed, but this would happen before jQuery.ready(), so the document would be gone when that was called. Apparently the first thing to go wrong would be Date no longer being defined, hence that error. Changing it to a $(window).load(...) solved the problem.

comment:4 Changed 2 years ago by timmywil

  • Status changed from new to closed
  • Resolution set to invalid

Sounds good. Thanks for looking into it.

comment:5 in reply to: ↑ description Changed 22 months ago by anonymous

Replying to ewuch@…:

I'd read much about how jQuery 1.5.1 is supposed to be compatible with IE9. However, when testing it, I get a bug that 'Date' is undefined in jquery.js (line 811). I tried 1.5.2 and the same thing happens (line 805 of jquery.js). Will jQuery be compatible with IE9 at some point?

I have same problem :(

comment:6 Changed 21 months ago by timmywil

  • Priority changed from undecided to low

There has not yet been a test case provided, which makes it difficult to reproduce any issue with IE9. Date is a regular javascript constructor that has nothing to do with jQuery.

comment:7 Changed 9 months ago by robert@…

Having the same issue it happens only in IE 9 when I try to remove a frame that has a document.ready inside the frame.

If I remove the document.ready functions from the iframe source it works.

If I create a simple example doing the same thing in jsfiddle it works the program I am working in is huge so I am not sure what in my program causes the issue.

My way around it was to set the source of the frame to "about: blank" and then removing the frame after the blank page loads. I only have to do this in IE.

Weird issue because the error does not seem to relate to the issue.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.