I am amazed by seeing the below behaviour in SDL Tridion 2011 SP1 with HR1:
I have a Page with all statically embedded component presentation on it. In the Page Template DWT, I have following lines of code:
...
...
<!--[if lt IE 9]>
<link href="/system/css/ie8.css" rel="stylesheet" type="text/css"/>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if IE 9]>
<link href="/system/css/ie9.css" rel="stylesheet" type="text/css"/>
<![endif]-->
...
...
If I see the Preview of the page in CME, it looks perfectly fine and as expected.
If I published the page to the file system and check the component presentation of the page in the transport package, it is also perfectly fine and as expected.
However, then if I go to the file system location, where the page has been published, the source of the page looks as below:
...
...
<!--[if lt IE 9]>
<link href="/system/css/ie8.css" rel="stylesheet" type="text/css"/>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
!--[if IE 9]>
<link href="/system/css/ie9.css" rel="stylesheet" type="text/css"/>
<![endif]-->
...
...
Please note the line - [if IE 9] - The delimiter < is removed.
I have checked the Content Delivery side, and there is no customization and everything is working with default settings.
Interestingly, if I put a new line between -
<![endif]-->
<!--[if IE 9]>
To write it like as below:
<![endif]-->
<!--[if IE 9]>
It starts working fine.
[Updated] I observed another thing- The same thing is working fine Dev, Test and UAT but is giving problem in the Production Environment only. Even on Production, it was working fine few weeks ago, but now we have re-published it and seeing this behaviour.
My concern is related to the Behaviour - My Understanding was whatever is there in the Rendered CP in Transport package comes out to be the final page output; but I am seeing an exception here
Any idea about this behaviour?