Skip to content

Commit

Permalink
improve Opera hack (hat tip to Ben Ogle)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike authored and Mike committed Feb 6, 2009
1 parent e27264e commit 7b13593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.form.js
Expand Up @@ -276,7 +276,7 @@ $.fn.ajaxSubmit = function(options) {

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

if (doc.body == null && !operaHack && $.browser.opera) {
if ((doc.body == null || doc.body.innerHTML == '') && !operaHack && $.browser.opera) {
// In Opera 9.2.x the iframe DOM is not always traversable when
// the onload callback fires so we give Opera 100ms to right itself
operaHack = 1;
Expand Down

0 comments on commit 7b13593

Please sign in to comment.