Bug Tracker

Opened 9 years ago

Closed 9 years ago

#14287 closed bug (notabug)

jQuery doesn't respect :empty and displays element which should be hidden

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.3
Keywords: Cc:
Blocked by: Blocking:


With CSS :empty, empty elements shouldn't be visible. If I hide and show elements again the element which should be hidden, is displayed.

Recreated the misbehavior in all browsers.

Test case: http://jsfiddle.net/h5n9X/

Change History (2)

comment:1 Changed 9 years ago by anonymous

Works just as expected: http://jsfiddle.net/h5n9X/1/

Please read about specificity of CSS selectors to understand what went wrong in your example.

comment:2 Changed 9 years ago by timmywil

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.