Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14672 closed bug (notabug)

Select Option Visible

Reported by: davidcomtois@… 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

Change History (3)

comment:1 Changed 6 years ago by dmethvin

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.

comment:2 Changed 6 years ago by m_gol

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.

comment:3 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed

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

Note: See TracTickets for help on using tickets.