0

I'm making a tab set up and need to set display none on a container element, according to this https://stackoverflow.com/a/8266879/1213795 - is.(":visible") should return false if an ancestor is hidden right? So this should return false.

$('svg').each(function (i) {
    console.log("Doesn't work! - " + $(this).is(":visible"));
});

https://jsfiddle.net/umkn1rmo/6/

Here's a fiddle to demonstrate the issue, it seems to work fine in Safari/Chrome.

Community
  • 1
  • 1
Mike Mellor
  • 1,164
  • 12
  • 20

1 Answers1

0

After some research, I found out that the broken "hidden" selector for SVGs is a known firefox bug... and won't be fixed : http://bugs.jquery.com/ticket/12587 - concerning IE, it's almost certainly the same.

Jeremy Thille
  • 21,780
  • 7
  • 36
  • 54