My understanding is that something "visible" that's inside something "hidden" will report that it's visible....

Otherwise, if you were to hide the hidden-div-1 and then show it, the internal inside-hidden-div would also need to be explicitly re-shown ?

Maybe an inherit might get around this - haven't tried it.

Liam

anastasia wrote:
I'm hoping someone can clarify the expected behaviour of the :visible
and :hidden filters when the parent element is hidden(display: none).
Will these filters consider these invisible-to-the-user elements
visible, or hidden?

For example:
  <div id="hidden-div-1" style="display:none;">
    <div id="inside-hidden-div">This div is inside a hidden div.</div>
  </div>

So will $("#inside-hidden-div:hidden") return the element? My
expectation was that this *would* have returned the element, but it
does not.

There is an old ticket that seems to be related to this issue:
http://dev.jquery.com/ticket/1349

Thanks!
--
anastasia




Reply via email to