<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,21 +3,17 @@ jQuery.expr = Sizzle.selectors;
 jQuery.expr[&quot;:&quot;] = jQuery.expr.filters;
 
 Sizzle.selectors.filters.hidden = function(elem){
-	var width = elem.offsetWidth, height = elem.offsetHeight;
-	return ( width === 0 &amp;&amp; height === 0 ) ?
+	var width = elem.offsetWidth, height = elem.offsetHeight,
+		 force = /^tr$/i.test( elem.tagName ); // ticket #4512
+	return ( width === 0 &amp;&amp; height === 0 &amp;&amp; !force ) ?
 		true :
-		( width !== 0 &amp;&amp; height !== 0 ) ?
-			false :
-			!!( jQuery.curCSS(elem, &quot;display&quot;) === &quot;none&quot; );
+			( width !== 0 &amp;&amp; height !== 0 &amp;&amp; !force ) ?
+				false :
+					!!( jQuery.curCSS(elem, &quot;display&quot;) === &quot;none&quot; );
 };
 
 Sizzle.selectors.filters.visible = function(elem){
-	var width = elem.offsetWidth, height = elem.offsetHeight;
-	return ( width === 0 &amp;&amp; height === 0 ) ?
-		false :
-		( width &gt; 0 &amp;&amp; height &gt; 0 ) ?
-			true :
-			!!( jQuery.curCSS(elem, &quot;display&quot;) !== &quot;none&quot; );
+	return !Sizzle.selectors.filters.hidden(elem);
 };
 
 Sizzle.selectors.filters.animated = function(elem){</diff>
      <filename>libs/jquery.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5716360040a440041da19823964f96d025ca734b</id>
    </parent>
  </parents>
  <author>
    <name>brandonaaron</name>
    <email>brandon.aaron@gmail.com</email>
  </author>
  <url>http://github.com/jeresig/sizzle/commit/4449308fbce4c34f46737469fae6698c0ed63230</url>
  <id>4449308fbce4c34f46737469fae6698c0ed63230</id>
  <committed-date>2009-06-23T11:11:47-07:00</committed-date>
  <authored-date>2009-06-23T11:11:47-07:00</authored-date>
  <message>fix for jQuery bug #4512</message>
  <tree>53a7e63345e1cf65e466c763b42a3e02052c5ab2</tree>
  <committer>
    <name>brandonaaron</name>
    <email>brandon.aaron@gmail.com</email>
  </committer>
</commit>
