Skip to main content

Bug Tracker

Side navigation

#14672 closed bug (notabug)

Opened January 06, 2014 01:23AM UTC

Closed January 06, 2014 10:08PM UTC

Select Option Visible

Reported by: davidcomtois@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:
Description

Please see: http://jsfiddle.net/QxDLA/

Visible should count both items as they are not hidden

Attachments (0)
Change History (3)

Changed January 06, 2014 03:32PM UTC by dmethvin comment:1

Depending on the simplicity of a fix, I'd be perfectly happy calling this a limitation of the :visible selector and documenting that it's not supported.

If you want to know which item is selected, there is a better way to do that. As for the second, unselected, item, it is not visible.

Changed January 06, 2014 05:28PM UTC by m_gol comment:2

Considering that select options are not really visible in the document until you click on the select box, IMO them not being selected is not an incorrect thing.

Changed January 06, 2014 10:08PM UTC by dmethvin comment:3

resolution: → notabug
status: newclosed

Discussed at the core meeting today, this is the docs issue: https://github.com/jquery/api.jquery.com/issues/409