aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-07-21 22:10:16 -0400
committerScott González <scott.gonzalez@gmail.com>2010-07-21 22:10:16 -0400
commit3f070bdc62a8d00ca6d8428b1a1fe9e39ff72c65 (patch)
tree93469406fe74f754010e63c6fdb082d4e9b580ee /ui
parent4c55071976168db5d002f93bcd56fc61e4f55d1f (diff)
downloadjquery-ui-3f070bdc62a8d00ca6d8428b1a1fe9e39ff72c65.tar.gz
jquery-ui-3f070bdc62a8d00ca6d8428b1a1fe9e39ff72c65.zip
Core: Fixed :focusable and :tabbable selectors for to work with :hidden and :visibile selectors in jQuery 1.3.2+. Still need to handle areas properly. Partial fix for #4488 - :focusable and :tabbable are broken with jQuery 1.3.2.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.core.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js
index c3ba811f6..bffa51d77 100644
--- a/ui/jquery.ui.core.js
+++ b/ui/jquery.ui.core.js
@@ -203,7 +203,10 @@ $.extend($.expr[':'], {
: !isNaN(tabIndex))
// the element and all of its ancestors must be visible
// the browser may report that the area is hidden
- && !$(element)['area' == nodeName ? 'parents' : 'closest'](':hidden').length;
+ && !$(element).parents().andSelf().filter(function() {
+ return $.curCSS( this, "visibility" ) === "hidden" ||
+ $.expr.filters.hidden( this );
+ }).length;
},
tabbable: function(element) {