Closed msevcenko closed 8 years ago
With normal TDI request, the node argument of the Sizzle.setDocument contains XMLDocument object, having no parentWindow, so no onbeforeunload is bound. If the TDI submits form with file data, the submit is via iframe rather than via AJAX, and the argument node for some reason contains Document object, which has a parentWindow, so IE attempts to bind and event and crashes.
The code is called from within the _success handler of TDI, namely by the code $xml.find( 'status' );
.
Looks like this is a jQuery problem, may be related to https://bugs.jquery.com/ticket/13936, upgrading to 1.12.4 seems to fix the problem.
Could you try version 1.10.2 as well? Does it also fix the problem?
Confirmed. Looks like the bug is fixed between 1.10.1 and 1.10.2.
I updated the documentation, stating that the minimum required version of jQuery is now 1.10.2 and added a warning to the code as well.
Fails with error in Sizzle.setDocument in the following code:
parent.attachEvent being undefined in IE11.