cmlenz/jquery-iframe-transport — Issue #8: [patch] XHTML compatibility
Author: kvdb
Created: 2012-02-24 10:04:49+00:00
State: open

Using the plugin with XHTML5 resulted in firefox not parsing the page correctly. Fix below.

--- static/js/jquery.iframe-transport.js	(revision 4818)
+++ static/js/jquery.iframe-transport.js	(working copy)
@@ -142,14 +142,14 @@
name = value.name;
value = value.value;
}
- $("").attr({name: name, value: value}).
+ $("").attr({name: name, value: value}).
appendTo(form);
});

// Add a hidden `X-Requested-With` field with the value `IFrame` to the
// field, to help server-side code to determine that the upload happened
// through this transport.
- $("").
+ $("").
appendTo(form);

// Move the file fields into the hidden form, but first remember their