Skip to content

Commit a422738

Browse files
rwaldrontimmywil
authored andcommitted
Landing pull request 478. Apply fixes as noted by Diego Perini, David Murdoch & Mathias Bynens. Supplements #9634 Fixes #9634.
More Details: - jquery#478 - http://bugs.jquery.com/ticket/9634
1 parent f035c44 commit a422738

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/support.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jQuery.support = (function() {
2424

2525
// Preliminary tests
2626
div.setAttribute("className", "t");
27-
div.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
27+
div.innerHTML = " <link><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type=checkbox>";
28+
2829

2930
all = div.getElementsByTagName( "*" );
3031
a = div.getElementsByTagName( "a" )[ 0 ];
@@ -152,8 +153,8 @@ jQuery.support = (function() {
152153
if ( body ) {
153154
jQuery.extend( testElementStyle, {
154155
position: "absolute",
155-
left: -1000,
156-
top: -1000
156+
left: "-1000px",
157+
top: "-1000px"
157158
});
158159
}
159160
for ( i in testElementStyle ) {
@@ -185,7 +186,7 @@ jQuery.support = (function() {
185186
support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
186187
}
187188

188-
div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>&nbsp;</td></tr></table>";
189+
div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
189190
tds = div.getElementsByTagName( "td" );
190191

191192
// Check if table cells still have offsetWidth/Height when they are set

0 commit comments

Comments
 (0)