:hidden and :visible doesn't work well in 1.4?
I use the jquery treeview plugin (from Jörn Zaefferer) with jquery 1.2.6 version but yesterday I updated the version and the plugin crashed... I found the "bug":
this.filter(":has(>ul:hidden)")
.addClass(CLASSES.expandable)
.replaceClass(CLASSES.last, CLASSES.lastExpandable);
so I tested the following alert: (under 1.2.6 and 1.4 version)
alert(this.filter(":has(>ul:hidden)").length);
alert(this.filter(":has(>ul:visible)").length);
I had 4 list element in it 1-1 ul (in 3 cases the ul is display:block and in 1 case display:none)
the result under 1.2.6:
1
3
that's OK
the result under 1.4:
4
4
what's wrong?
maybe :hidden and :visible doesn't work?
thanks and sorry for my english.