aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/jquery.effects.core.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js
index 5cf95696d..fe2bf298d 100644
--- a/ui/jquery.effects.core.js
+++ b/ui/jquery.effects.core.js
@@ -428,6 +428,15 @@ $.extend( $.effects, {
},
active = document.activeElement;
+ // support: Firefox
+ // Firefox incorrectly exposes anonymous content
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=561664
+ try {
+ active.id;
+ } catch( e ) {
+ active = document.body;
+ }
+
element.wrap( wrapper );
// Fixes #7595 - Elements lose focus when wrapped.