Skip to main content

Bug Tracker

Side navigation

#4766 closed bug (wontfix)

Opened June 15, 2009 01:05PM UTC

Closed October 31, 2010 09:35PM UTC

input:hidden bug (?)

Reported by: maxbnet Owned by:
Priority: major Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

jQuery("input:hidden") fails if input has these css properties (border & display)

input.inputbug

{

display:block;

border:1px solid #fff;

}

http://maxb.net/scripts/input_hidden_bug/test-1.3.2.html

Attachments (0)
Change History (3)

Changed November 21, 2009 06:45PM UTC by Abro comment:1

That's not a bug.

How could jQuery determine if you expect:

  • ":hidden" == ":not(:visible)" or
  • ":hidden" == "[type=hidden]" ?

By definition it's the first. Just take a look at the docs. There is no such form-selector atm., sorry.

Changed June 12, 2010 02:40PM UTC by dmethvin comment:2

component: unfiledselector

Abro, both types of elements are considered to be hidden. However, this case is a bit too bizarre for my taste. Don't style hidden inputs!

There are several checks/filters for :hidden elsewhere in jQuery fx; if this is fixed it may have other impacts.

Changed October 31, 2010 09:35PM UTC by snover comment:3

resolution: → wontfix
status: newclosed