Side navigation
#6086 closed bug (worksforme)
Opened February 12, 2010 02:38PM UTC
Closed October 06, 2010 02:08AM UTC
Multiple class names and the visible selector
Reported by: | marcselman | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.2 |
Component: | ajax | Version: | 1.4.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When using the :visible selector on a selection of elements which have multiple classes they are not selected.
Example:
<a class="one two">link</a>
$('.one:visible').length == 0
Attachments (0)
Change History (1)
Changed October 06, 2010 02:08AM UTC by comment:1
priority: | → undecided |
---|---|
resolution: | → worksforme |
status: | new → closed |
Here is a test case I have reproduced based on your original submission:
http://jsfiddle.net/tpufR/2/
As you can see, :visible is able to successfully select the set of elements with class 'one' that are visible. The length of this set only accounts for the three (in yellow) that are visible and ignores the other links of class 'one' that are not.