I think i have identified a bug in the way ASP handles IE conditional comments (or html comments in general)..
In theory it should not handle them at all since they are meant for the client-side..
In practice ..
<!--[if IE 6]>
<!--include virtual="emptyfile.asp"-->
<![endif]-->
will return
<![endif]>
Yes, you read that correctly.. it will remove the opening of the comment include whatever is in the file and keep the closing comment tag..
This of'course will mess up the html and of'course make whatever was for the IE to be executed for all...
there are obvious workaround such as using server.execute
to include your file instead of the include directive, which will work as expected..
Most likely it confuses the ending -->
of the include directive with the opening <!--
of the html comment.. But it should not bother with html comments at all..
Is there a know reason this happens in this way ? or is it just a bug ?