From ead83b9c8a6b751f31f0197ff0364e95a1ca24cd Mon Sep 17 00:00:00 2001 From: Adrian Olek Date: Wed, 12 Aug 2015 15:20:11 +0200 Subject: [PATCH] Event: Use form prop so that a propHook can be used Fixes gh-2332 Closes gh-2575 --- src/event.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/event.js b/src/event.js index c7964cb99..6cb4db551 100644 --- a/src/event.js +++ b/src/event.js @@ -922,7 +922,12 @@ if ( !support.submit ) { // Node name check avoids a VML-related crash in IE (#9807) var elem = e.target, form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? - elem.form : + + // Support: IE <=8 + // We use jQuery.prop instead of elem.form + // to allow fixing the IE8 delegated submit issue (gh-2332) + // by 3rd party polyfills/workarounds. + jQuery.prop( elem, "form" ) : undefined; if ( form && !jQuery._data( form, "submit" ) ) { -- 2.39.5