<?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/"
		>
<channel>
	<title>Comments on: &#8216;DOM-foolery&#8217; with Images</title>
	<atom:link href="http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Sat, 07 Nov 2009 23:35:20 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joshua Paine</title>
		<link>http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/comment-page-1/#comment-11909</link>
		<dc:creator>Joshua Paine</dc:creator>
		<pubDate>Wed, 14 Dec 2005 23:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/wpblogs/?p=1144#comment-11909</guid>
		<description>Chris, do you still see the problems with IE5 if you apply my two fixes posted above?</description>
		<content:encoded><![CDATA[<p>Chris, do you still see the problems with IE5 if you apply my two fixes posted above?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/comment-page-1/#comment-11899</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 14 Dec 2005 15:54:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/wpblogs/?p=1144#comment-11899</guid>
		<description>It doesn&#039;t work on Safari 1.0.0 or 1.0.3 using OS X 10.2. I was thinking about using this on my site, but I&#039;m not sure if it won&#039;t work for some users. On IE5, it just shows the normal photo (which is good), but on Safari 1.0 it actually shows the corners in different places on the page (which is bad).</description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t work on Safari 1.0.0 or 1.0.3 using OS X 10.2. I was thinking about using this on my site, but I&#8217;m not sure if it won&#8217;t work for some users. On IE5, it just shows the normal photo (which is good), but on Safari 1.0 it actually shows the corners in different places on the page (which is bad).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Paine</title>
		<link>http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/comment-page-1/#comment-11897</link>
		<dc:creator>Joshua Paine</dc:creator>
		<pubDate>Wed, 14 Dec 2005 15:10:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/wpblogs/?p=1144#comment-11897</guid>
		<description>Looks fine in Safari 2.0.1 to me, but no it&#039;s never going to work in IE5 Mac.</description>
		<content:encoded><![CDATA[<p>Looks fine in Safari 2.0.1 to me, but no it&#8217;s never going to work in IE5 Mac.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/comment-page-1/#comment-11895</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 14 Dec 2005 15:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/wpblogs/?p=1144#comment-11895</guid>
		<description>This doesn&#039;t quite work on the mac (OS X) using either Safari or IE5.</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t quite work on the mac (OS X) using either Safari or IE5.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Hannes</title>
		<link>http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/comment-page-1/#comment-9094</link>
		<dc:creator>Hannes</dc:creator>
		<pubDate>Mon, 03 Oct 2005 05:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/wpblogs/?p=1144#comment-9094</guid>
		<description>Works perfectly, thank you very much!</description>
		<content:encoded><![CDATA[<p>Works perfectly, thank you very much!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Paine</title>
		<link>http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/comment-page-1/#comment-9054</link>
		<dc:creator>Joshua Paine</dc:creator>
		<pubDate>Fri, 30 Sep 2005 13:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/wpblogs/?p=1144#comment-9054</guid>
		<description>&lt;blockquote&gt;Is there anything you could make the IE not to crash?&lt;/blockquote&gt;

Immediately before the line
&lt;code&gt;original.parentNode.replaceChild(wrapper, original);&lt;/code&gt;
add
&lt;code&gt;if(original.parentNode.tagName.toUpperCase()==&#039;A&#039;) original = original.parentNode;&lt;/code&gt;

I haven&#039;t tested that, but it should work and should be compatible with my IE rounding bug fix above.</description>
		<content:encoded><![CDATA[<blockquote><p>Is there anything you could make the IE not to crash?</p></blockquote>
<p>Immediately before the line<br />
<code>original.parentNode.replaceChild(wrapper, original);</code><br />
add<br />
<code>if(original.parentNode.tagName.toUpperCase()=='A') original = original.parentNode;</code></p>
<p>I haven&#8217;t tested that, but it should work and should be compatible with my IE rounding bug fix above.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Hannes</title>
		<link>http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/comment-page-1/#comment-9050</link>
		<dc:creator>Hannes</dc:creator>
		<pubDate>Fri, 30 Sep 2005 09:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/wpblogs/?p=1144#comment-9050</guid>
		<description>I&#039;m really impressed from this nice Function though I&#039;ve noticed some serious problems with - guess who - IE. If you try to link an Image e.g.

&lt;code&gt;&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&lt;/code&gt;

the IE would unfortunately crash. Is there anything you could make the IE not to crash? :-)</description>
		<content:encoded><![CDATA[<p>I&#8217;m really impressed from this nice Function though I&#8217;ve noticed some serious problems with &#8211; guess who &#8211; IE. If you try to link an Image e.g.</p>
<code><a href="#" rel="nofollow"></a></code>
<p>the IE would unfortunately crash. Is there anything you could make the IE not to crash? :-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: OliverBrown.me.uk</title>
		<link>http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/comment-page-1/#comment-8304</link>
		<dc:creator>OliverBrown.me.uk</dc:creator>
		<pubDate>Fri, 26 Aug 2005 16:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/wpblogs/?p=1144#comment-8304</guid>
		<description>&lt;strong&gt;DOM foolery&lt;/strong&gt;

Since I&#039;ve been making random DOM and JavaScript posts recently I thought I&#039;d share a clever bog post I found cleverly called DOM-foolery. It describes a relatively simple way to make images in web pages have curved corners.

DOM, ECMAScript, Javsc...</description>
		<content:encoded><![CDATA[<p><strong>DOM foolery</strong></p>
<p>Since I&#8217;ve been making random DOM and JavaScript posts recently I thought I&#8217;d share a clever bog post I found cleverly called DOM-foolery. It describes a relatively simple way to make images in web pages have curved corners.</p>
<p>DOM, ECMAScript, Javsc&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: AlexW</title>
		<link>http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/comment-page-1/#comment-8182</link>
		<dc:creator>AlexW</dc:creator>
		<pubDate>Sun, 21 Aug 2005 01:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/wpblogs/?p=1144#comment-8182</guid>
		<description>Haven&#039;t tested that out yet, but it sounds like a perfect solution, Joshua. Nice work.</description>
		<content:encoded><![CDATA[<p>Haven&#8217;t tested that out yet, but it sounds like a perfect solution, Joshua. Nice work.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Paine</title>
		<link>http://www.sitepoint.com/blogs/2005/08/19/dom-foolery-with-images/comment-page-1/#comment-8178</link>
		<dc:creator>Joshua Paine</dc:creator>
		<pubDate>Sat, 20 Aug 2005 15:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/wpblogs/?p=1144#comment-8178</guid>
		<description>You can fix the IE rounding bug thusly:

Instead of making tr and br positioned with right:0; and width:7px;, position them with left:0; and width:100%;. You can actually do this to all four corners to shrink the CSS with no ill effects.

For this to work, though, you need to add one line to the javascript:

&lt;code&gt;wrapper.style.width = imgs[i].width+&#039;px&#039;;&lt;/code&gt;

You can put this anywhere inside the for loop once wrapper is defined.</description>
		<content:encoded><![CDATA[<p>You can fix the IE rounding bug thusly:</p>
<p>Instead of making tr and br positioned with right:0; and width:7px;, position them with left:0; and width:100%;. You can actually do this to all four corners to shrink the CSS with no ill effects.</p>
<p>For this to work, though, you need to add one line to the javascript:</p>
<code>wrapper.style.width = imgs[i].width+'px';</code>
<p>You can put this anywhere inside the for loop once wrapper is defined.</p>]]></content:encoded>
	</item>
</channel>
</rss>
