Ticket #4435 (closed enhancement: fixed)
Parse Error cause being lost
| Reported by: | nunfur | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.4.1 |
| Component: | ajax | Version: | 1.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I recently started working with jQuery, using its ajax features. I needed to obtain and parse an RSS feed. this ajax call was failing and i could not find out what was happening.
The error was a parse error, if when jQuery tries to parse the HttpData the status is changed to "parseerror", the error function is called but the original error is lost.
Anyway to change this so the cause can reach the error function?
Orinal code[line 3582]:
try {
process the data (runs the xml through httpData regardless of callback)
data = jQuery.httpData( xhr, s.dataType, s );
} catch(e) {
status = "parsererror";
}
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Fixed. http://github.com/jquery/jquery/commit/ca90ffb332eafc93b8107aeb2afa7473132392fd