Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12005 closed bug (invalid)

ajax handle make the error as correct

Reported by: mbn.bean@… Owned by: mbn.bean@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

Description

as the title,

here is my code :

var u = "http://url.not.exist";
$.ajax({
	url:u,
	success : function(){ console.info(arguments, "111"); },
	error: function(){ console.log(arguments, "222"); },
	complete: function(){ console.log(arguments, "33333"); }
});

the url is not realy exist, but that success callback will execute if the html page include jq.1.4.2 version. I found the bug of source code 1.4.2 on line 5323, the last condition "xhr.status === 0" is the error.

Change History (2)

comment:1 Changed 7 years ago by Rick Waldron

Owner: set to mbn.bean@…
Status: newpending

The latest version is 1.7.2 - please confirm that the bug still exists.

comment:2 Changed 7 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.