X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fsupport.js;h=332839df87f3560ccb4292fad17d3e9a21945160;hb=255068da33e3d131b3a641c041fb8cecb1543fa4;hp=04c3a2a69d6c16fc155f56d9ecbc9489b3699ff5;hpb=f8ef75eb9124ce924be5fb521c783efd5c996e33;p=jquery.git diff --git a/src/support.js b/src/support.js index 04c3a2a..332839d 100644 --- a/src/support.js +++ b/src/support.js @@ -8,7 +8,7 @@ id = "script" + (new Date).getTime(); div.style.display = "none"; - div.innerHTML = '
a'; + div.innerHTML = '
a'; var all = div.getElementsByTagName("*"), a = div.getElementsByTagName("a")[0]; @@ -40,7 +40,7 @@ // Make sure that element opacity exists // (IE uses filter instead) - opacity: a.style.opacity === "0.5", + opacity: a.style.opacity === "0.55", // Verify style float existence // (IE uses styleFloat instead of cssFloat) @@ -88,7 +88,11 @@ document.body.appendChild( div ); jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2; document.body.removeChild( div ).style.display = 'none'; + div = null; }); + + // release memory in IE + root = script = div = all = a = null; })(); jQuery.props = { @@ -98,5 +102,8 @@ jQuery.props = { maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan", - tabindex: "tabIndex" + colspan: "colSpan", + tabindex: "tabIndex", + usemap: "useMap", + frameborder: "frameBorder" };