Bug Tracker

Opened 6 years ago

Closed 6 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:

Description

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 6 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 6 years ago by timmywil

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