Skip to content

Commit

Permalink
v2.32 - bug fix; response not handled correctly when file upload retu…
Browse files Browse the repository at this point in the history
…rns XML doc.
  • Loading branch information
Mike authored and Mike committed Sep 17, 2009
1 parent 6346045 commit 15932c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jquery.form.js
@@ -1,6 +1,6 @@
/*
* jQuery Form Plugin
* version: 2.31 (09-SEP-2009)
* version: 2.32 (17-SEP-2009)
* @requires jQuery v1.2.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
Expand Down Expand Up @@ -284,8 +284,10 @@ $.fn.ajaxSubmit = function(options) {
var data, doc;

doc = io.contentWindow ? io.contentWindow.document : io.contentDocument ? io.contentDocument : io.document;

if (doc.body == null || doc.body.innerHTML == '') {

var isXml = opts.dataType == 'xml' || doc.XMLDocument || $.isXMLDoc(doc);
log('isXml='+isXml);
if (!isXml && (doc.body == null || doc.body.innerHTML == '')) {
if (--domCheckCount) {
// in some browsers (Opera) the iframe DOM is not always traversable when
// the onload callback fires, so we loop a bit to accommodate
Expand Down

0 comments on commit 15932c2

Please sign in to comment.