Skip to content

Commit

Permalink
Roll out document.write in iframe src. use about:blank instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike authored and Mike committed Feb 9, 2009
1 parent d21ddfd commit e52ed46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.form.js
@@ -1,6 +1,6 @@
/*
* jQuery Form Plugin
* version: 2.20 (06-FEB-2009)
* version: 2.21 (08-FEB-2009)
* @requires jQuery v1.2.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
Expand Down Expand Up @@ -164,7 +164,7 @@ $.fn.ajaxSubmit = function(options) {
var s = jQuery.extend(true, {}, $.extend(true, {}, $.ajaxSettings), opts);

var id = 'jqFormIO' + (new Date().getTime());
var $io = $('<iframe id="' + id + '" name="' + id + '" src="javascript:false;document.write("");" />');
var $io = $('<iframe id="' + id + '" name="' + id + '" src="about:blank" />');
var io = $io[0];

$io.css({ position: 'absolute', top: '-1000px', left: '-1000px' });
Expand Down

0 comments on commit e52ed46

Please sign in to comment.