Bug Tracker

Opened 15 years ago

Closed 15 years ago

#1905 closed bug (fixed)

Unit tests fail in IE on $.ajax() - JSONP, Local

Reported by: davidserduke Owned by:
Priority: major Milestone: 1.2.2
Component: ajax Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:

Description

The unit testing was failing in IE for

$.ajax() - JSONP, Local

In IE, the test was not coming back. Debugging showed that the regular expression testing for the =? was the issue. It turned out that s.data.match(jsre) was called then jsre.test(s.data). This worked in FireFox, but in IE the first call was setting the lastIndex of the regular expression so when the test() happened it was at the end of the string and failed.

Changing the test() call to another match() call fixed the problem.

Attachments (1)

1905.diff (496 bytes) - added by davidserduke 15 years ago.
patch

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by davidserduke

Attachment: 1905.diff added

patch

comment:1 Changed 15 years ago by davidserduke

Resolution: fixed
Status: newclosed

Fixed in [3840].

Note: See TracTickets for help on using tickets.