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: |
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 9 years ago by
comment:2 Changed 9 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Works just as expected: http://jsfiddle.net/h5n9X/1/
Please read about specificity of CSS selectors to understand what went wrong in your example.