fix :hidden selector that was accidentally reverted in previous commit, also fixed tests for :hidden selector in IE6
This commit is contained in:
parent
d72b8307de
commit
31b573185b
2 changed files with 3 additions and 2 deletions
|
@ -977,7 +977,7 @@ jQuery.expr = Sizzle.selectors;
|
|||
jQuery.expr[":"] = jQuery.expr.filters;
|
||||
|
||||
Sizzle.selectors.filters.hidden = function(elem){
|
||||
return elem.offsetWidth === 0 || elem.offsetHeight === 0;
|
||||
return elem.offsetWidth === 0 && elem.offsetHeight === 0;
|
||||
};
|
||||
|
||||
Sizzle.selectors.filters.visible = function(elem){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue