<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:ymaps="http://api.maps.yahoo.com/Maps/V2/AnnotatedMaps.xsd"	>
<channel>
	<title>Comments on: Table row offsetTop bug in Safari</title>
	<atom:link href="http://squaregalaxy.com/tech/table-row-offsettop-bug-in-safari/feed/" rel="self" type="application/rss+xml" />
	<link>http://squaregalaxy.com/tech/table-row-offsettop-bug-in-safari/</link>
	<description>A blog by Jacob</description>
	<lastBuildDate>Wed, 17 Mar 2010 12:44:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Shalabh</title>
		<link>http://squaregalaxy.com/tech/table-row-offsettop-bug-in-safari/comment-page-1/#comment-3683</link>
		<dc:creator>Shalabh</dc:creator>
		<pubDate>Fri, 18 Apr 2008 06:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://jacob.peargrove.com/blog/2006/technical/table-row-offsettop-bug-in-safari/#comment-3683</guid>
		<description>&lt;i&gt;I did find a workaround to this problem for Safari. The offsetTop can be found by examining the trElement.firstChild (which is a TD) if it exists. The TD contains the offset for the TR.&lt;/i&gt;


Thanks Steve. I had almost given up until I landed here. trElement.firstChild solved my problem for finding offsetTop value in Safari(v2.0). Even this works in Mozilla(v5.0) and IE6 too.
Thanks a lot once again</description>
		<content:encoded><![CDATA[<p><i>I did find a workaround to this problem for Safari. The offsetTop can be found by examining the trElement.firstChild (which is a TD) if it exists. The TD contains the offset for the TR.</i></p>
<p>Thanks Steve. I had almost given up until I landed here. trElement.firstChild solved my problem for finding offsetTop value in Safari(v2.0). Even this works in Mozilla(v5.0) and <acronym title="Internet Explorer 6">IE6</acronym> too.<br />
Thanks a lot once again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob&#8217;s Technical Blog &#187; My blog post found in JBoss Richfaces source</title>
		<link>http://squaregalaxy.com/tech/table-row-offsettop-bug-in-safari/comment-page-1/#comment-3675</link>
		<dc:creator>Jacob&#8217;s Technical Blog &#187; My blog post found in JBoss Richfaces source</dc:creator>
		<pubDate>Sun, 09 Dec 2007 08:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://jacob.peargrove.com/blog/2006/technical/table-row-offsettop-bug-in-safari/#comment-3675</guid>
		<description>[...] in the source to JBoss Richfaces. The blog post that was referenced was a small note I made about bug in the Safari web browser. They provided a workaround in Javascript code for a suggestion box, and they referenced my post in [...]</description>
		<content:encoded><![CDATA[<p>[...] in the source to JBoss Richfaces. The blog post that was referenced was a small note I made about bug in the Safari web browser. They provided a workaround in Javascript code for a suggestion box, and they referenced my post in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arun</title>
		<link>http://squaregalaxy.com/tech/table-row-offsettop-bug-in-safari/comment-page-1/#comment-3674</link>
		<dc:creator>arun</dc:creator>
		<pubDate>Thu, 23 Aug 2007 06:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://jacob.peargrove.com/blog/2006/technical/table-row-offsettop-bug-in-safari/#comment-3674</guid>
		<description>The same issue occurs for me, even i use safari 3.0.2</description>
		<content:encoded><![CDATA[<p>The same issue occurs for me, even i use safari 3.0.2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: site admin</title>
		<link>http://squaregalaxy.com/tech/table-row-offsettop-bug-in-safari/comment-page-1/#comment-3673</link>
		<dc:creator>site admin</dc:creator>
		<pubDate>Tue, 12 Jun 2007 17:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://jacob.peargrove.com/blog/2006/technical/table-row-offsettop-bug-in-safari/#comment-3673</guid>
		<description>I just checked this bug again with the new Safari 3 beta, and it seems to be fixed.</description>
		<content:encoded><![CDATA[<p>I just checked this bug again with the new Safari 3 beta, and it seems to be fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve West</title>
		<link>http://squaregalaxy.com/tech/table-row-offsettop-bug-in-safari/comment-page-1/#comment-3671</link>
		<dc:creator>Steve West</dc:creator>
		<pubDate>Fri, 08 Sep 2006 02:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://jacob.peargrove.com/blog/2006/technical/table-row-offsettop-bug-in-safari/#comment-3671</guid>
		<description>Jacob,

Thanks for the post confirming the same results that I have found.

I found that basically none of the offset properties work, offsetWidth, offsetHeight, offsetTop etc.  None work for a TR.

I did find a workaround to this problem for Safari.  The offsetTop can be found by examining the trElement.firstChild (which is a TD) if it exists.  The TD contains the offset for the TR.

I found the width of the row by doing this:

offsetWidthTR = trElement.lastChild.offsetLeft + trElement.lastChild.offsetWidth;

So basically you have to look at the first cell and the last cell and obtain that info down.

My GetPageYCoordinate and GetPageXCoordnate methods which drill up to the using the offsetParent from the element passed in has the special case for handling the TR when the browser is Safari.

At any rate, thanks for confirming my suspicions which lead to my answer.</description>
		<content:encoded><![CDATA[<p>Jacob,</p>
<p>Thanks for the post confirming the same results that I have found.</p>
<p>I found that basically none of the offset properties work, offsetWidth, offsetHeight, offsetTop etc.  None work for a TR.</p>
<p>I did find a workaround to this problem for Safari.  The offsetTop can be found by examining the trElement.firstChild (which is a TD) if it exists.  The TD contains the offset for the TR.</p>
<p>I found the width of the row by doing this:</p>
<p>offsetWidthTR = trElement.lastChild.offsetLeft + trElement.lastChild.offsetWidth;</p>
<p>So basically you have to look at the first cell and the last cell and obtain that info down.</p>
<p>My GetPageYCoordinate and GetPageXCoordnate methods which drill up to the using the offsetParent from the element passed in has the special case for handling the TR when the browser is Safari.</p>
<p>At any rate, thanks for confirming my suspicions which lead to my answer.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
