Side navigation
#14287 closed bug (notabug)
Opened August 22, 2013 10:14PM UTC
Closed August 23, 2013 01:16PM UTC
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/
Works just as expected:
http://jsfiddle.net/h5n9X/1/
Please read about specificity of CSS selectors to understand what went wrong in your example.