Skip to main content

Bug Tracker

Side navigation

#7963 closed bug (invalid)

Opened January 13, 2011 05:03PM UTC

Closed January 13, 2011 10:08PM UTC

Last modified March 10, 2012 09:49AM UTC

selector :hidden select option of select tag elements on IE7

Reported by: paztaga@gmail.com Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

on IE7, if you use $(':hidden') selector, jquery returns option tags of select tag.

On firefox it doesn't.

see test case:

http://jsfiddle.net/Xz6wT/3/

Attachments (0)
Change History (1)

Changed January 13, 2011 10:08PM UTC by danheberden comment:1

_comment0: Thanks for taking the time to submit a bug report :) \ \ Browser visibility can be a bit wonky, as you can imagine. In this case, you're asking for anything not visible, and really, you're getting into the style of select options which can be a bit wonky. Namely, your issue is also present in chrome because there is no height or width for an option, thus, it's "hidden". \ \ If you're looking to get hidden form elements, better to do input[type="hidden"] (you could do input:hidden, but the former is a faster selector)1294956661491643
resolution: → invalid
status: newclosed

Thanks for taking the time to submit a bug report :)

Browser visibility can be a bit wonky, as you can imagine. In this case, you're asking for anything not visible, and really, you're getting into the style of select options which can be a pain in the arse. Namely, your issue is also present in chrome because there is no height or width for an option, thus, it's "hidden".

If you're looking to get hidden form elements, better to do input[type="hidden"] (you could do input:hidden, but the former is a faster selector)