Merge pull request #444 from rwldrn/9634

Non-breaking-space should achieve the same effect as a visible character. Fixes #9634
This commit is contained in:
Dave Methvin 2011-08-04 14:15:18 -07:00
commit ea0303ecbf

View File

@ -184,7 +184,7 @@ jQuery.support = (function() {
support.shrinkWrapBlocks = ( div.offsetWidth !== 2 ); support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
} }
div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>"; div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>&nbsp;</td></tr></table>";
tds = div.getElementsByTagName( "td" ); tds = div.getElementsByTagName( "td" );
// Check if table cells still have offsetWidth/Height when they are set // Check if table cells still have offsetWidth/Height when they are set