diff --git a/src/support.js b/src/support.js index 9d25c8f29..d9f579053 100644 --- a/src/support.js +++ b/src/support.js @@ -15,10 +15,11 @@ jQuery.support = (function() { // Preliminary tests div.setAttribute( "className", "t" ); - div.innerHTML = "
a"; + div.innerHTML = "
a"; all = div.getElementsByTagName("*"); a = div.getElementsByTagName("a")[ 0 ]; + a.style.cssText = "top:1px;float:left;opacity:.5"; // Can't get basic test support if ( !all || !all.length || !a ) { @@ -196,8 +197,9 @@ jQuery.support = (function() { // display:none (it is still safe to use offsets if a parent element is // hidden; don safety goggles and see bug #4512 for more information). // (only IE 8 fails this test) - div.innerHTML = "
t
"; + div.innerHTML = "
t
"; tds = div.getElementsByTagName("td"); + tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; isSupported = ( tds[ 0 ].offsetHeight === 0 ); tds[ 0 ].style.display = ""; @@ -249,7 +251,8 @@ jQuery.support = (function() { // (IE 6 does this) div.style.display = "block"; div.style.overflow = "visible"; - div.innerHTML = "
"; + div.innerHTML = "
"; + div.firstChild.style.width = "5px"; support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); container.style.zoom = 1;