MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / isHiddenWithinTree

Function isHiddenWithinTree

docs/_static/jquery-3.6.0.js:4721–4738  ·  view source on GitHub ↗
( elem, el )

Source from the content-addressed store, hash-verified

4719 };
4720 }
4721var isHiddenWithinTree = function( elem, el ) {
4722
4723 // isHiddenWithinTree might be called from jQuery#filter function;
4724 // in that case, element will be second argument
4725 elem = el || elem;
4726
4727 // Inline style trumps all
4728 return elem.style.display === "none" ||
4729 elem.style.display === "" &&
4730
4731 // Otherwise, check computed style
4732 // Support: Firefox <=43 - 45
4733 // Disconnected elements can have computed display: none, so first confirm that elem is
4734 // in the document.
4735 isAttached( elem ) &&
4736
4737 jQuery.css( elem, "display" ) === "none";
4738 };
4739
4740
4741

Callers 3

showHideFunction · 0.85
jquery-3.6.0.jsFile · 0.85
defaultPrefilterFunction · 0.85

Calls 1

isAttachedFunction · 0.85

Tested by

no test coverage detected