<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oncemade &#187; bug</title>
	<atom:link href="http://oncemade.com/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://oncemade.com</link>
	<description>Design, Web Dev, Inspiration</description>
	<lastBuildDate>Fri, 09 Jul 2010 02:06:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Adjacent Sibling Selector Bug in IE7</title>
		<link>http://oncemade.com/adjacent-sibling-selector-bug-ie7/</link>
		<comments>http://oncemade.com/adjacent-sibling-selector-bug-ie7/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 12:00:13 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[adjacent sibling selector]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[ie7]]></category>

		<guid isPermaLink="false">http://oncemade.com/?p=574</guid>
		<description><![CDATA[I recently ran into a bug on Internet Explore 7 that was driving me nuts. After hours of debugging, I [...]]]></description>
			<content:encoded><![CDATA[<p>I recently ran into a bug on Internet Explore 7 that was driving me nuts. After hours of debugging, I finally found the solution.</p>

<p><abbr title="Internet Explore 7">IE7</abbr> has a bug when using <a href="http://www.w3.org/TR/CSS2/selector.html">adjacent sibling selectors</a>. If there is a comment between two elements, it will think that the comment is the next element. Here is the example:</p>

<pre><h4>CSS</h4><code>p + p { background-color: #fc0; }</code></pre>
<pre><h4>Markup with comment</h4><code>&lt;p&gt;Paragraph #1&lt;/p&gt;
&lt;!-- my comment here --&gt;
&lt;p&gt;Paragraph #2&lt;/p&gt;</code></pre>

<p>The image bellow shows how it supposed to look like in all modern browsers. Unfortunately, the only way to make it work in <abbr title="Internet Explore 7">IE7</abbr> would be by removing the comment.</p>
<p class="aligncenter"><img src="http://examples.oncemade.com/images/adjacentSiblingSelector.png" alt="adjacent sibling selector" /></p>

<pre><h4>Markup without comment to make it work in <abbr title="Internet Explore 7">IE7</abbr></h4><code>&lt;p&gt;Paragraph #1&lt;/p&gt;
&lt;p&gt;Paragraph #2&lt;/p&gt;</code></pre>

]]></content:encoded>
			<wfw:commentRss>http://oncemade.com/adjacent-sibling-selector-bug-ie7/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
