r1702 - in branches/experimental/tabbable: . tests
Author: scott.gonzalez
Date: Mon Jan 19 18:05:06 2009
New Revision: 1702
Modified:
branches/experimental/tabbable/tests/core.js
branches/experimental/tabbable/ui.core.js
Log:
Tabbable: areas with hrefs should be tabbable.
Modified: branches/experimental/tabbable/tests/core.js
==============================================================================
--- branches/experimental/tabbable/tests/core.js (original)
+++ branches/experimental/tabbable/tests/core.js Mon Jan 19 18:05:06 2009
@@ -116,7 +116,7 @@
isTabbable('#visibleAncestor-object', 'object');
isTabbable('#visibleAncestor-anchorWithHref', 'anchor with href');
isNotTabbable('#visibleAncestor-anchorWithoutHref', 'anchor without
href');
- isNotTabbable('#visibleAncestor-areaWithHref', 'area with href');
+ isTabbable('#visibleAncestor-areaWithHref', 'area with href');
isNotTabbable('#visibleAncestor-areaWithoutHref', 'area without href');
isNotTabbable('#visibleAncestor-span', 'span');
isNotTabbable('#visibleAncestor-div', 'div');
Modified: branches/experimental/tabbable/ui.core.js
==============================================================================
--- branches/experimental/tabbable/ui.core.js (original)
+++ branches/experimental/tabbable/ui.core.js Mon Jan 19 18:05:06 2009
@@ -17,7 +17,7 @@
tabbable: function(element) {
var tabIndex = $.attr(element, 'tabindex');
return (isNaN(tabIndex) || tabIndex >= 0)
- && $(element).not('area').is(':focusable');
+ && $(element).is(':focusable');
}
});