Skip to main content

Bug Tracker

Side navigation

#12005 closed bug (invalid)

Opened July 03, 2012 03:56AM UTC

Closed July 17, 2012 08:25AM UTC

ajax handle make the error as correct

Reported by: mbn.bean@gmail.com Owned by: mbn.bean@gmail.com
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.

Attachments (0)
Change History (2)

Changed July 03, 2012 04:25AM UTC by rwaldron comment:1

owner: → mbn.bean@gmail.com
status: newpending

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

Changed July 17, 2012 08:25AM UTC by trac-o-bot comment:2

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!