<?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>Monday By Noon &#187; conditional-comments</title>
	<atom:link href="http://mondaybynoon.com/tag/conditional-comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://mondaybynoon.com</link>
	<description>A resource for Web designers and developers to read about and discuss their craft.</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:49:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Microsoft Dropping Support for Conditional Comments</title>
		<link>http://mondaybynoon.com/feeder/?FeederAction=clicked&#038;feed=Posts+%28RSS2%29&#038;seed=http%3A%2F%2Fmondaybynoon.com%2F20110707%2Fmicrosoft-dropping-support-for-conditional-comments%2F&#038;seed_title=Microsoft+Dropping+Support+for+Conditional+Comments</link>
		<comments>http://mondaybynoon.com/20110707/microsoft-dropping-support-for-conditional-comments/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 12:13:18 +0000</pubDate>
		<dc:creator>Jonathan Christopher</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Current Events]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[conditional-comments]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet-Explorer]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://mondaybynoon.com/?p=1763</guid>
		<description><![CDATA[HTML5 Parsing in IE10 &#8211; IEBlog &#8211; Site Home &#8211; MSDN Blogs. There&#8217;s a bunch of information about how IE10 will be handling HTML5, but the bit that sticks out to me is that IE will no longer support Conditional Comments as of version 10. Conditional Comments have been a controversial issue since becoming widely [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269068&k=2ee344414ac81fbb0f9de6ab08e9831e&a=1763&c=973992245' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269068&k=2ee344414ac81fbb0f9de6ab08e9831e&a=1763&c=973992245' border='0' alt='' /></a></p><p><a href='http://buysellads.com/buy/sitedetails/pubkey/2ee344414ac81fbb0f9de6ab08e9831e/zone/1269068' target='_blank'>Advertise here with BSA</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.msdn.com/b/ie/archive/2011/07/06/html5-parsing-in-ie10.aspx">HTML5 Parsing in IE10 &#8211; IEBlog &#8211; Site Home &#8211; MSDN Blogs</a>.</p>
<p>There&#8217;s a bunch of information about how IE10 will be handling HTML5, but the bit that sticks out to me is that <strong>IE will no longer support Conditional Comments </strong>as of version 10.</p>
<p>Conditional Comments have been a controversial issue since becoming widely adopted as a method of avoiding CSS hacks. I, for one, <a href="/2006/05/15/i-vote-conditional-comments/">have stood behind Conditional Comments fot some time</a> and use them in sites to this day. As with all things though, <a href="/2007/07/23/taking-conditional-comments-too-far/">Conditional Comments have been abused</a> over time, which likely put a bad taste in the mouths of many developers.</p>
<p>I think that the IE team deciding to drop Conditional Comments speaks to the fact that they&#8217;re doing all they can to adhere and become more relevant given their lifespan thus far.</p>
<p>It&#8217;s been a long time since I&#8217;ve had to write maybe a CSS declaration or two targeted only at Internet Explorer, but I&#8217;m hoping by the time IE10 comes out, that average drops even further.</p>
<br /><p><a href='http://rss.buysellads.com/click.php?z=1269068&k=2ee344414ac81fbb0f9de6ab08e9831e&a=1763&c=1878113556' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269068&k=2ee344414ac81fbb0f9de6ab08e9831e&a=1763&c=1878113556' border='0' alt='' /></a></p><p><a href='http://buysellads.com/buy/sitedetails/pubkey/2ee344414ac81fbb0f9de6ab08e9831e/zone/1269068' target='_blank'>Advertise here with BSA</a></p>]]></content:encoded>
			<wfw:commentRss>http://mondaybynoon.com/20110707/microsoft-dropping-support-for-conditional-comments/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>&#8226; Taking Conditional Comments Too Far</title>
		<link>http://mondaybynoon.com/feeder/?FeederAction=clicked&#038;feed=Posts+%28RSS2%29&#038;seed=http%3A%2F%2Fmondaybynoon.com%2F20070723%2Ftaking-conditional-comments-too-far%2F&#038;seed_title=%26%238226%3B+Taking+Conditional+Comments+Too+Far</link>
		<comments>http://mondaybynoon.com/20070723/taking-conditional-comments-too-far/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 12:38:34 +0000</pubDate>
		<dc:creator>Jonathan Christopher</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[conditional-comments]]></category>
		<category><![CDATA[Internet-Explorer]]></category>

		<guid isPermaLink="false">http://mondaybynoon.com/2007/07/23/taking-conditional-comments-too-far/</guid>
		<description><![CDATA[Using conditional comments to include a version specific style sheet (or a bit of JavaScript) should be all the ammo you need to solve the problem of Internet Explorer.<br /><p><a href='http://rss.buysellads.com/click.php?z=1269068&k=2ee344414ac81fbb0f9de6ab08e9831e&a=89&c=461706005' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269068&k=2ee344414ac81fbb0f9de6ab08e9831e&a=89&c=461706005' border='0' alt='' /></a></p><p><a href='http://buysellads.com/buy/sitedetails/pubkey/2ee344414ac81fbb0f9de6ab08e9831e/zone/1269068' target='_blank'>Advertise here with BSA</a></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve come to accept and support <a href="http://msdn2.microsoft.com/en-us/library/ms537512.aspx">conditional comments</a> as a tool to use when it&#8217;s otherwise impossible to get Internet Explorer to behave desirably.  To me, they&#8217;re <a href="/2006/05/15/i-vote-conditional-comments/">much more acceptable than unstable CSS hacks</a> or extensive <code>!important</code> declarations.  They&#8217;re much easier to maintain, and it&#8217;s the only truly reliable way to target not only Internet Explorer itself, but specify a version as well. The subject of conditional comments comes with great debate that seems to be ongoing.  There are good arguments on both sides, but to me, conditional comments seem like the best solution.</p>
<h2>When I use conditional comments</h2>
<p>Up until this point, conditional comments have saved the day for me simply by being present in the <code>head</code> of my documents. For nearly every client project, I find myself using conditional comments to target both Internet Explorer 6 as well as Internet Explorer 7.  In my opinion, as far as standards compliance is concerned, IE7 is merely a shuffle forward, as opposed to a step.</p>
<p>I&#8217;ve also accepted using conditional comments to include JavaScript written specifically to assist Internet Explorer.  A specific example that comes to mind is when I&#8217;m implementing <a href="http://www.htmldog.com/articles/suckerfish/dropdowns/">Suckerfish Dropdowns</a>.  I elect to include the JavaScript with a conditional comment simply because the script is only meant to be run when browsing the document in Internet Explorer 6.  I prefer to have other browsers ignore the JavaScript for simplicity&#8217;s sake. While it may not be considered harmful to allow JavaScript such as the bit needed for Suckerfish Dropdowns in all browsers, to me it is settling to keep it separated.</p>
<h3>Using conditional comments in the <code>body</code></h3>
<p>Until recently, it hadn&#8217;t even occurred to me that using conditional comments in the <code>body</code> of your document could become commonplace. There&#8217;s no documentation specifying that conditional comments can be used only in the <code>head</code> of your document, so why stop there?  To me, using conditional comments in the <code>body</code> of your document is partially counter productive.</p>
<p>The reason I choose to employ conditional comments is their nature of providing longevity.  By writing specific style sheets to target specific versions of Internet Explorer, I&#8217;m able to solve a rendering issue and leave the solution as is for the life of the document.  The problem is solved with a minimal change to the <abbr title="Document Object Model">DOM</abbr>.</p>
<p>When you choose to use conditional comments in the <code>body</code> of your document, you&#8217;re electing to alter the <abbr title="Document Object Model">DOM</abbr> in a more significant way.  Now, instead of working with different style sheets to solve a problem, you&#8217;re altering the problem itself.  If this route is chosen, you now have a number of choices.  You can alter a significant portion of the <abbr title="Document Object Model">DOM</abbr> in order to work with a single, existing style sheet, or you can take both sides and use conditional comments to include Internet Explorer specific style sheets as well as alter the DOM at the same time.</p>
<p>The idea in general, to me, seems more sloppy than resorting to the use of <abbr title="Cascading Style Sheets">CSS</abbr> hacks strewn throughout your document style sheet.  Your source will become ugly and awkward to maintain, and the longevity of your document will be greatly reduced.  Using conditional comments to include a version specific style sheet (or a bit of JavaScript) should be all the ammo you need to solve the problem of Internet Explorer.</p>
<h4>What&#8217;s your opinion?</h4>
<p>How do you feel about conditional comments in the first place?  If you&#8217;re opposed, is it due to the fact that the code is technically proprietary?  Is it due to the fact that the implementations you&#8217;ve seen are as outlined above in that conditional comments are littered across the entire <abbr title="Document Object Model">DOM</abbr>?</p>
<br /><p><a href='http://rss.buysellads.com/click.php?z=1269068&k=2ee344414ac81fbb0f9de6ab08e9831e&a=89&c=2015608130' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269068&k=2ee344414ac81fbb0f9de6ab08e9831e&a=89&c=2015608130' border='0' alt='' /></a></p><p><a href='http://buysellads.com/buy/sitedetails/pubkey/2ee344414ac81fbb0f9de6ab08e9831e/zone/1269068' target='_blank'>Advertise here with BSA</a></p>]]></content:encoded>
			<wfw:commentRss>http://mondaybynoon.com/20070723/taking-conditional-comments-too-far/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Database Caching 1/56 queries in 0.056 seconds using apc
Object Caching 607/675 objects using apc

Served from: www.mondaybynoon.com @ 2012-02-11 10:14:10 -->
