- // #8099 - If the end-dev has globally changed a default
- // display, we can temporarily disable their styles to check
- // for the correct default value
- for ( idx = 0; idx < stylesheets.length; ++idx ) {
- style = stylesheets[ idx ];
- disabled[ idx ] = style.disabled;
- style.disabled = true;
- }
-
- // To accurately check an element's default display value,
- // create a temp element and check it's default display, this
- // will ensure that the value returned is not a user-tampered
- // value.
- elem = jQuery("<" + nodeName + ">").appendTo("body");
- display = elem.css("display");
-
- // Remove temp element