Merge branch 'fix-8456-lost-mouseenter' of https://github.com/dmethvin/jquery into...
[jquery.git] / src / event.js
index 61c8a93..bc2cf76 100644 (file)
@@ -661,7 +661,7 @@ var withinElement = function( event ) {
 
                // Chrome does something similar, the parentNode property
                // can be accessed but is null.
-               if ( parent !== document && !parent.parentNode ) {
+               if ( parent && parent !== document && !parent.parentNode ) {
                        return;
                }
                // Traverse up the tree